#include <Texture2D.hpp>
◆ Texture2D()
Engine::Graphics::Texture2D::Texture2D |
( |
int |
width, |
|
|
int |
height, |
|
|
uint8_t * |
data, |
|
|
Texture::Type |
type = Texture::Type::RGBA8 |
|
) |
| |
- Parameters
-
data | The pointer to the raw pixels data |
width | The width of the image held by the data pointer |
height | The height of the image held by the data pointer |
type | What is the type of this pixels array? |
◆ ~Texture2D()
virtual Engine::Graphics::Texture2D::~Texture2D |
( |
| ) |
|
|
virtual |
◆ getDepth()
int Engine::Graphics::Texture2D::getDepth |
( |
| ) |
const |
|
overridevirtual |
Returns the depth of the texture in pixels.
- Note
- If this texture is 2D the depth is always 1 pixels
- Returns
- Depth in pixels
Implements Engine::Graphics::Texture.
◆ getHeight()
int Engine::Graphics::Texture2D::getHeight |
( |
| ) |
const |
|
overridevirtual |
◆ getWidth()
int Engine::Graphics::Texture2D::getWidth |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following file: