Documentation ¶
Index ¶
- Constants
- func Error() error
- func Images() []image.Image
- func InitializeGraphicsDriverState() error
- func IsRestoringEnabled() bool
- func ResolveStaleImages()
- func Restore() error
- type Image
- func (i *Image) At(x, y int) (byte, byte, byte, byte)
- func (i *Image) Dispose()
- func (i *Image) DrawImage(img *Image, vertices []float32, indices []uint16, colorm *affine.ColorM, ...)
- func (i *Image) Fill(r, g, b, a uint8)
- func (i *Image) IsInvalidated() (bool, error)
- func (i *Image) IsSharedForTesting() bool
- func (i *Image) IsVolatile() bool
- func (i *Image) MakeVolatile()
- func (i *Image) PutVertex(dest []float32, dx, dy, sx, sy float32, bx0, by0, bx1, by1 float32, ...)
- func (i *Image) QuadVertices(sx0, sy0, sx1, sy1 int, a, b, c, d, tx, ty float32, cr, cg, cb, ca float32) []float32
- func (i *Image) ReplacePixels(p []byte)
- func (i *Image) Size() (width, height int)
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func InitializeGraphicsDriverState ¶ added in v1.9.0
func InitializeGraphicsDriverState() error
func IsRestoringEnabled ¶
func IsRestoringEnabled() bool
func ResolveStaleImages ¶
func ResolveStaleImages()
Types ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func (*Image) Fill ¶ added in v1.9.0
Fill fills the image with a color. This affects not only the (0, 0)-(width, height) region but also the whole framebuffer region.
func (*Image) IsInvalidated ¶
func (*Image) IsSharedForTesting ¶ added in v1.8.0
func (*Image) IsVolatile ¶ added in v1.8.0
func (*Image) MakeVolatile ¶ added in v1.9.0
func (i *Image) MakeVolatile()
func (*Image) QuadVertices ¶ added in v1.8.0
func (*Image) ReplacePixels ¶
Click to show internal directories.
Click to hide internal directories.