High level representation of a game texture.
Interaction with this class is done through the TextureManager; textures are identified using an instance ID and group ID (there is also type ID, but it is often defaulted to
.raster and ignored). The low level equivalent is RenderWare::
- class TextureContainer
- auto AddRef() -> int
- auto Release() -> int
auto GetRaster() -> RenderWare::
- Returns the underlying raster of this texture, which can be used to load it into shaders and materials.
auto GetLoadedRaster() -> RenderWare::
- Returns the underlying raster of this texture, waiting until the texture finishes loading if it is still loading asynchronously (so this will always return the final raster, and not temporary ones).
- auto IsLoaded() -> bool
- Returns true if the texture is fully loaded, false if it is still loading.