Base class: Asset

Lua
C++
Edit

Texture

A texture is an image that can be applied to 2D or 3D surfaces. Textures can be loaded from DDS files or other file formats loaded with plugins.

Property Type Description
mipchain table stores texture mipmaps when loaded with LOAD_MIPCHAIN
size iVec3 read-only dimensions
BuildMipmaps Method generates mipmaps for the texture
SetPixels Method sets the texture image data
SetSubPixels Method sets the texture image data of an area
CreateTexture Function creates a new texture
LoadTexture Function loads a texture from a file or stream
Copyright © 2024 Ultra Software.
All rights reserved.