Documentation ¶
Index ¶
- Constants
- func CopyImage(origImg image.Image) *image.RGBA
- func FlushCommands() error
- func NextPowerOf2Int(x int) int
- func QuadVertexSizeInBytes() int
- func Reset() error
- type Image
- func (i *Image) Dispose()
- func (i *Image) DrawImage(src *Image, vertices []float32, clr *affine.ColorM, mode opengl.CompositeMode)
- func (i *Image) Fill(clr color.RGBA)
- func (i *Image) IsInvalidated() bool
- func (i *Image) Pixels() ([]uint8, error)
- func (i *Image) ReplacePixels(p []uint8)
- func (i *Image) Size() (int, int)
Constants ¶
View Source
const MaxImageSize = viewportSize
Variables ¶
This section is empty.
Functions ¶
func FlushCommands ¶ added in v1.5.0
func FlushCommands() error
func NextPowerOf2Int ¶ added in v1.2.0
func QuadVertexSizeInBytes ¶ added in v1.5.0
func QuadVertexSizeInBytes() int
Types ¶
type Image ¶ added in v1.5.0
type Image struct {
// contains filtered or unexported fields
}
func NewImageFromImage ¶ added in v1.5.0
func NewScreenFramebufferImage ¶ added in v1.5.0
func (*Image) IsInvalidated ¶ added in v1.5.0
func (*Image) ReplacePixels ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.