Documentation ¶
Overview ¶
Package glutil implements OpenGL utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Image ¶
Image bridges between an *image.RGBA and an OpenGL texture.
The contents of the embedded *image.RGBA can be uploaded as a texture and drawn as a 2D quad.
The number of active Images must fit in the system's OpenGL texture limit. The typical use of an Image is as a texture atlas.
func NewImage ¶
NewImage creates an Image of the given size.
Both a host-memory *image.RGBA and a GL texture are created.
Click to show internal directories.
Click to hide internal directories.