The 2D texture class.
Definition Texture.hpp:17
Texture(std::vector< BufferType > &_image, int _width, int _height, TextureFormat _format)
Creates a new texture with the given image data, width, height, and format.
Definition Texture.hpp:40
int width
The width of the texture in pixels.
Definition Texture.hpp:19
Texture(int _width, int _height, TextureFormat _format)
Creates a new texture with the given width, height, and format.
Definition Texture.hpp:27
int height
The height of the texture in pixels.
Definition Texture.hpp:20
std::vector< BufferType > image
The image data of the texture.
Definition Texture.hpp:22
TextureFormat format
The format of the texture.
Definition Texture.hpp:21