|
|
| ~Texture () |
| | Destroys the Texture object and releases OpenGL resources.
|
| |
| void | Bind (GLuint slot=0) const |
| | Binds the texture to a specified slot.
|
| |
|
void | UnBind () const |
| | Unbinds the texture from the current slot.
|
| |
| void | UpdateInfo (int &rWidth, int &rHeight) |
| | Updates the provided width and height references with the texture's dimensions.
|
| |
| int | GetWidth () const |
| | Gets the width of the texture.
|
| |
| int | GetHeight () const |
| | Gets the height of the texture.
|
| |
| Vector2 | GetSize () const |
| | Gets the size of the texture as a Vector2.
|
| |
| GLuint | GetID () const |
| | Gets the OpenGL texture ID.
|
| |
Represents a texture in the engine.
This class encapsulates an OpenGL texture, providing methods to bind, unbind, and query texture properties such as width, height, and OpenGL ID.