int Index { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Index property of the Texture class represents the texture index. This property is an integer value that is used internally to identify the texture within the system. It is a low-level representation and may require a higher-level abstraction for more complex operations.

Usage

Use the Index property to retrieve or set the index of a texture. This is typically used in scenarios where you need to manage or reference textures directly by their index within the rendering system.

Example

// Example of accessing the Index property of a Texture
Texture myTexture = new Texture();
int textureIndex = myTexture.Index;

// Set a new index
myTexture.Index = 5;