class
RTextureA texture class containing all OpenGL abstractions for implementing textures.
Contents
Constructors, destructors, conversion operators
Public functions
- void bindTexture() const
- Binds this texture object.
- void unbindTexture() const
- Unbinds this texture object.
- auto getID() const -> const GLuint
- Returns the texture ID of this texture.
Function documentation
Rubeus:: GraphicComponents:: RTexture:: RTexture(const char* path)
Constructor. Uses a path string to load an image from.
Parameters | |
---|---|
path | The file path for the image. |
void Rubeus:: GraphicComponents:: RTexture:: bindTexture() const
Binds this texture object.
void Rubeus:: GraphicComponents:: RTexture:: unbindTexture() const
Unbinds this texture object.
const GLuint Rubeus:: GraphicComponents:: RTexture:: getID() const
Returns the texture ID of this texture.
Returns | Copy of this object's texture ID. |
---|