|
t
|
The 2D texture class. More...
#include <Texture.hpp>
Public Member Functions | |
| Texture (int _width, int _height, TextureFormat _format) | |
| Creates a new texture with the given width, height, and format. | |
| Texture (std::vector< BufferType > &_image, int _width, int _height, TextureFormat _format) | |
| Creates a new texture with the given image data, width, height, and format. | |
Public Attributes | |
| int | width |
| The width of the texture in pixels. | |
| int | height |
| The height of the texture in pixels. | |
| TextureFormat | format |
| The format of the texture. | |
| std::vector< BufferType > | image |
| The image data of the texture. | |
The 2D texture class.
A texture is an image that can be used for any purpose, such as a render target, a texture map, a depth map, etc.
|
inline |
Creates a new texture with the given image data, width, height, and format.
| _image | The image data of the texture. |
| _width | The width of the texture in pixels. |
| _height | The height of the texture in pixels. |
| _format | The format of the texture. |