ebiten: github.com/hajimehoshi/ebiten/internal/mipmap Index | Files

package mipmap

import "github.com/hajimehoshi/ebiten/internal/mipmap"


Package Files


func BeginFrame Uses

func BeginFrame() error

func EndFrame Uses

func EndFrame() error

func SetGraphicsDriver Uses

func SetGraphicsDriver(graphics driver.Graphics)

type Mipmap Uses

type Mipmap struct {
    // contains filtered or unexported fields

Mipmap is a set of buffered.Image sorted by the order of mipmap level. The level 0 image is a regular image and higher-level images are used for mipmap.

func New Uses

func New(width, height int, volatile bool) *Mipmap

func NewScreenFramebufferMipmap Uses

func NewScreenFramebufferMipmap(width, height int) *Mipmap

func (*Mipmap) DrawTriangles Uses

func (m *Mipmap) DrawTriangles(srcs [graphics.ShaderImageNum]*Mipmap, vertices []float32, indices []uint16, colorm *affine.ColorM, mode driver.CompositeMode, filter driver.Filter, address driver.Address, sourceRegion driver.Region, shader *Shader, uniforms []interface{}, canSkipMipmap bool)

func (*Mipmap) Dump Uses

func (m *Mipmap) Dump(name string, blackbg bool) error

func (*Mipmap) Fill Uses

func (m *Mipmap) Fill(clr color.RGBA)

func (*Mipmap) MarkDisposed Uses

func (m *Mipmap) MarkDisposed()

func (*Mipmap) Pixels Uses

func (m *Mipmap) Pixels(x, y, width, height int) ([]byte, error)

func (*Mipmap) ReplacePixels Uses

func (m *Mipmap) ReplacePixels(pix []byte, x, y, width, height int) error

type Shader Uses

type Shader struct {
    // contains filtered or unexported fields

func NewShader Uses

func NewShader(program *shaderir.Program) *Shader

func (*Shader) MarkDisposed Uses

func (s *Shader) MarkDisposed()

Package mipmap imports 8 packages (graph) and is imported by 3 packages. Updated 2020-08-05. Refresh now. Tools for package owners.