Skip to content

Mojo graphics texture

mojo:mojo.graphics.Texture

Class Texture Extends std.resource.Resource#

The Texture class.

The "MOJO_TEXTURE_MAX_ANISOTROPY" config setting control the max anisotropy of mipmapped textures.

Constructors
New Creates a new texture.
Properties
FilePath Image filepath.
Flags
Format (read only)
GLTarget (read only)
Height (read only)
ManagedPixmap (read only)
Size (read only)
Width (read only)
Methods
Bind
GetCubeFace
Modified
PastePixmap
ValidateGLTexture
Functions
ColorTexture
FlatNormal
Load
LoadNormal
Protected methods
OnDiscard
OnFinalize