Documentation ¶
Overview ¶
Package graphics represents a low layer for graphics using OpenGL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaxImageSize ¶ added in v1.5.0
func MaxImageSize() int
MaxImageSize returns the maximum of width/height of an image.
func ResetGLState ¶ added in v1.6.0
func ResetGLState() error
ResetGLState resets or initializes the current OpenGL state.
func VertexSizeInBytes ¶ added in v1.8.0
func VertexSizeInBytes() int
VertexSizeInBytes returns the size in bytes of one vertex.
Types ¶
type Image ¶ added in v1.4.0
type Image struct {
// contains filtered or unexported fields
}
Image represents an image that is implemented with OpenGL.
func NewScreenFramebufferImage ¶ added in v1.4.0
func (*Image) IsInvalidated ¶ added in v1.4.0
func (*Image) Pixels ¶ added in v1.4.0
Pixels returns the image's pixels. Pixels might return nil when OpenGL error happens.
func (*Image) ReplacePixels ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.