Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Rect = image.Rect NewRGBA = image.NewRGBA )
Functions ¶
This section is empty.
Types ¶
type Texture ¶
type Texture struct {
// contains filtered or unexported fields
}
Texture represents a power-of-two 2D texture. The power-of-two means that the texture width and height must be a power of two. e.g. 1024x1024.
func NewColorTexture ¶
func NewTexture ¶
func NewTexture(opts ...TextureOption) *Texture
type TextureOption ¶
type TextureOption func(t *Texture)
func WithDebug ¶
func WithDebug(enable bool) TextureOption
func WithIsotropicMipMap ¶
func WithIsotropicMipMap(enable bool) TextureOption
func WithSource ¶
func WithSource(data *image.RGBA) TextureOption
Click to show internal directories.
Click to hide internal directories.