Documentation ¶
Index ¶
- func ClearVolatileImages()
- func ResolveStalePixels() error
- func Restore() error
- type Image
- func (p *Image) At(x, y int) (color.RGBA, error)
- func (p *Image) BasePixelsForTesting() []uint8
- func (p *Image) Dispose()
- func (p *Image) DrawImage(img *Image, vertices []float32, colorm *affine.ColorM, ...)
- func (p *Image) Fill(clr color.RGBA)
- func (p *Image) IsInvalidated() bool
- func (p *Image) ReplacePixels(pixels []uint8)
- func (p *Image) Size() (int, int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearVolatileImages ¶
func ClearVolatileImages()
func ResolveStalePixels ¶
func ResolveStalePixels() error
Types ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
Image represents an image that can be restored when GL context is lost.
func NewImageFromImage ¶
func (*Image) At ¶
At returns a color value at (x, y).
Note that this must not be called until context is available.
func (*Image) BasePixelsForTesting ¶
func (*Image) IsInvalidated ¶
func (*Image) ReplacePixels ¶
Click to show internal directories.
Click to hide internal directories.