Documentation ¶
Overview ¶
Package graphics represents a low layer for graphics using OpenGL.
Index ¶
- Constants
- func FlushCommands() error
- func QuadVertexSizeInBytes() int
- func ResetGLState() error
- type Filter
- type Image
- func (i *Image) Dispose()
- func (i *Image) DrawImage(src *Image, vertices []float32, clr *affine.ColorM, mode opengl.CompositeMode)
- func (i *Image) Fill(r, g, b, a uint8)
- func (i *Image) IsInvalidated() bool
- func (i *Image) Pixels() ([]byte, error)
- func (i *Image) ReplacePixels(p []byte)
- func (i *Image) Size() (int, int)
Constants ¶
View Source
const MaxImageSize = defaultViewportSize
MaxImageSize is the maximum of width/height of an image.
Variables ¶
This section is empty.
Functions ¶
func QuadVertexSizeInBytes ¶
func QuadVertexSizeInBytes() int
QuadVertexSizeInBytes returns the size in bytes of vertices for a quadrangle.
func ResetGLState ¶
func ResetGLState() error
ResetGLState resets or initializes the current OpenGL state.
Types ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
Image represents an image that is implemented with OpenGL.
func NewImageFromImage ¶
func (*Image) IsInvalidated ¶
func (*Image) ReplacePixels ¶
Click to show internal directories.
Click to hide internal directories.