#include <Texture.hpp>
◆ CreateTexture()
Creates a texture from data.
- Parameters
-
data | The graphics data to be used. If nullptr, the texture's contents are uninitialized. |
width | The width of the texture. |
height | The height of the texture. |
filterType | The filter type to be used by the texture. |
wrapType | The wrap method used by the texture. |
◆ GetFormatChannelSizes()
static constexpr std::vector< unsigned char > TeaPacket::Graphics::Texture::GetFormatChannelSizes |
( |
TextureFormat | format | ) |
|
|
inlinestaticconstexpr |
◆ Initialize()
void TeaPacket::Graphics::Texture::Initialize |
( |
const unsigned char * | data | ) |
|
Initialize a texture.
- Parameters
-
data | The graphics data the texture needs. If nullptr, the texture's contents are uninitialized. |
◆ filterType
◆ format
◆ height
unsigned short TeaPacket::Graphics::Texture::height |
◆ platformTexture
PlatformTexture TeaPacket::Graphics::Texture::platformTexture |
◆ width
unsigned short TeaPacket::Graphics::Texture::width |
◆ wrapType
The documentation for this class was generated from the following file:
- /github/workspace/include/TeaPacket/Graphics/Texture.hpp