Documentation ¶
Index ¶
- type Mipmap
- func (m *Mipmap) At(graphicsDriver graphicsdriver.Graphics, x, y int) (r, g, b, a byte, err error)
- func (m *Mipmap) DrawTriangles(srcs [graphics.ShaderImageNum]*Mipmap, vertices []float32, indices []uint16, ...)
- func (m *Mipmap) DumpScreenshot(graphicsDriver graphicsdriver.Graphics, name string, blackbg bool) error
- func (m *Mipmap) MarkDisposed()
- func (m *Mipmap) ReplacePixels(pix []byte, x, y, width, height int)
- func (m *Mipmap) SetIndependent(independent bool)
- func (m *Mipmap) SetVolatile(volatile bool)
- type Shader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 graphicsdriver.CompositeMode, filter graphicsdriver.Filter, address graphicsdriver.Address, dstRegion, srcRegion graphicsdriver.Region, subimageOffsets [graphics.ShaderImageNum - 1][2]float32, shader *Shader, uniforms [][]float32, evenOdd bool, canSkipMipmap bool)
func (*Mipmap) DumpScreenshot ¶ added in v2.1.4
func (*Mipmap) MarkDisposed ¶
func (m *Mipmap) MarkDisposed()
func (*Mipmap) ReplacePixels ¶
func (*Mipmap) SetIndependent ¶ added in v2.3.0
func (*Mipmap) SetVolatile ¶
Click to show internal directories.
Click to hide internal directories.