void resize(int width, int height)
Resizes the texture to new dimensions.
Definition texture.cpp:68
Texture(int width, int height)
Constructor for creating a texture with specified width and height.
Definition texture.cpp:13
unsigned int get_id() const
Gets the OpenGL renderer ID of the texture.
Definition texture.hpp:109
void bind(unsigned int slot=0) const
Binds the texture to a specified texture slot.
Definition texture.cpp:61
int get_height() const
Gets the height of the texture.
Definition texture.hpp:102
~Texture()
Destructor for the Texture class.
Definition texture.cpp:52
void unbind() const
Unbinds the texture.
Definition texture.cpp:66
void set_data(void *data, unsigned int size)
Sets the data of the texture.
Definition texture.cpp:75
int get_width() const
Gets the width of the texture.
Definition texture.hpp:95