Documentation ¶
Index ¶
- type Mipmap
- func (m *Mipmap) Deallocate()
- func (m *Mipmap) DrawTriangles(srcs [graphics.ShaderImageCount]*Mipmap, vertices []float32, indices []uint32, ...)
- func (m *Mipmap) DumpScreenshot(graphicsDriver graphicsdriver.Graphics, name string, blackbg bool) (string, error)
- func (m *Mipmap) ReadPixels(graphicsDriver graphicsdriver.Graphics, pixels []byte, region image.Rectangle) (ok bool, err error)
- func (m *Mipmap) WritePixels(pix []byte, region image.Rectangle)
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) Deallocate ¶ added in v2.7.0
func (m *Mipmap) Deallocate()
func (*Mipmap) DrawTriangles ¶
func (m *Mipmap) DrawTriangles(srcs [graphics.ShaderImageCount]*Mipmap, vertices []float32, indices []uint32, blend graphicsdriver.Blend, dstRegion image.Rectangle, srcRegions [graphics.ShaderImageCount]image.Rectangle, shader *atlas.Shader, uniforms []uint32, fillRule graphicsdriver.FillRule, canSkipMipmap bool)
func (*Mipmap) DumpScreenshot ¶ added in v2.1.4
func (*Mipmap) ReadPixels ¶ added in v2.4.0
Click to show internal directories.
Click to hide internal directories.