A texture.
More...
#include <Texture.hpp>
◆ Format
The format of the texture.
| Enumerator |
|---|
| R8 | 8-bit single channel color format.
|
| R8G8B8A8 | 8-bit RGBA color format.
|
| R11G11B10 | HDR RGB color format.
|
| R16G16B16A16 | HDR RGBA color format.
|
| D32 | 32-bit depth format.
|
◆ Type
The type of texture.
| Enumerator |
|---|
| COLOR | A sampled color texture.
|
| RENDER_COLOR | A color texture that can be rendered to.
|
| RENDER_DEPTH | A depth texture that can be rendered to.
|
◆ Texture()
| Video::Texture::Texture |
( |
Type |
type, |
|
|
const glm::uvec2 & |
size, |
|
|
Format |
format |
|
) |
| |
Create a new texture.
- Parameters
-
| type | The type of texture. |
| size | The size of the texture. |
| format | The format of the texture. |
◆ ~Texture()
| virtual Video::Texture::~Texture |
( |
| ) |
|
|
inlinevirtual |
◆ GetFormat()
| Format Video::Texture::GetFormat |
( |
| ) |
const |
|
inline |
Get the format of the texture.
- Returns
- The format of the texture.
◆ GetSize()
| const glm::uvec2 & Video::Texture::GetSize |
( |
| ) |
const |
|
inline |
Get the size of the texture.
- Returns
- The size of the texture in pixels.
◆ GetType()
| Type Video::Texture::GetType |
( |
| ) |
const |
|
inline |
Get the type of texture.
- Returns
- The type of the texture.
◆ GetUniqueIdentifier()
| uint64_t Video::Texture::GetUniqueIdentifier |
( |
| ) |
const |
Get a unique identifier.
- Returns
- A unique identifier.
The documentation for this class was generated from the following files: