Documentation ¶
Index ¶
- func BeginFrame() error
- func EndFrame() error
- func SetGraphicsDriver(graphics driver.Graphics)
- type Mipmap
- func (m *Mipmap) DrawTriangles(srcs [graphics.ShaderImageNum]*Mipmap, vertices []float32, indices []uint16, ...)
- func (m *Mipmap) Dump(name string, blackbg bool) error
- func (m *Mipmap) Fill(clr color.RGBA)
- func (m *Mipmap) MarkDisposed()
- func (m *Mipmap) Pixels(x, y, width, height int) ([]byte, error)
- func (m *Mipmap) ReplacePixels(pix []byte, x, y, width, height int) error
- func (m *Mipmap) SetVolatile(volatile bool)
- type Shader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginFrame ¶
func BeginFrame() error
func SetGraphicsDriver ¶
Types ¶
type Mipmap ¶
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 (*Mipmap) DrawTriangles ¶
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, subimageOffsets [graphics.ShaderImageNum - 1][2]float32, shader *Shader, uniforms []interface{}, canSkipMipmap bool)
func (*Mipmap) MarkDisposed ¶
func (m *Mipmap) MarkDisposed()
func (*Mipmap) ReplacePixels ¶
func (*Mipmap) SetVolatile ¶ added in v1.12.0
Click to show internal directories.
Click to hide internal directories.