Documentation ¶
Index ¶
- type Image
- func (i *Image) Deallocate()
- func (i *Image) DrawTriangles(srcs [graphics.ShaderImageCount]*Image, vertices []float32, indices []uint32, ...)
- func (i *Image) DumpScreenshot(graphicsDriver graphicsdriver.Graphics, name string, blackbg bool) (string, error)
- func (i *Image) ReadPixels(graphicsDriver graphicsdriver.Graphics, pixels []byte, region image.Rectangle) (bool, error)
- func (i *Image) WritePixels(pix []byte, region image.Rectangle)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func (*Image) Deallocate ¶ added in v2.7.0
func (i *Image) Deallocate()
func (*Image) DrawTriangles ¶
func (i *Image) DrawTriangles(srcs [graphics.ShaderImageCount]*Image, vertices []float32, indices []uint32, blend graphicsdriver.Blend, dstRegion image.Rectangle, srcRegions [graphics.ShaderImageCount]image.Rectangle, shader *atlas.Shader, uniforms []uint32, fillRule graphicsdriver.FillRule)
DrawTriangles draws the src image with the given vertices.
Copying vertices and indices is the caller's responsibility.
func (*Image) DumpScreenshot ¶ added in v2.1.4
func (*Image) ReadPixels ¶ added in v2.4.0
Click to show internal directories.
Click to hide internal directories.