#include <GL_Texture.hpp>
Definition at line 8 of file GL_Texture.hpp.
◆ Filter
Available filtering options.
Definition at line 38 of file Texture.hpp.
◆ PixelFormat
Available pixel formats.
| Enumerator |
|---|
| RGBA8888 | |
| RGB888 | |
Definition at line 24 of file Texture.hpp.
◆ WrapMode
Available wrap modes.
| Enumerator |
|---|
| CLAMP_TO_EDGE | |
| CLAMP_TO_BORDER | |
| REPEAT | |
Definition at line 31 of file Texture.hpp.
◆ OpenGLTexture2D()
| Cori::Graphics::Internal::OpenGLTexture2D::OpenGLTexture2D |
( |
| ) |
|
◆ ~OpenGLTexture2D()
| Cori::Graphics::Internal::OpenGLTexture2D::~OpenGLTexture2D |
( |
| ) |
|
|
override |
◆ Bind()
| void Cori::Graphics::Internal::OpenGLTexture2D::Bind |
( |
uint32_t | slot | ) |
const |
|
overridevirtual |
◆ Create() [1/2]
| std::shared_ptr< Texture2D > Cori::Graphics::Texture2D::Create |
( |
const std::shared_ptr< Image > & | image | ) |
|
|
staticnodiscardinherited |
◆ Create() [2/2]
| std::shared_ptr< Texture2D > Cori::Graphics::Texture2D::Create |
( |
const void * | pixelData, |
|
|
const uint32_t | width, |
|
|
const uint32_t | height, |
|
|
const Params & | params ) |
|
staticnodiscardinherited |
Creates a Texture2D.
- Parameters
-
| pixelData | Pixel data to create Texture2D from. |
| width | Width of the source picture data. |
| height | Height of the source picture data. |
| params | Parameters to create a texture with. |
- Returns
- Shared pointer to the created Texture2D.
Definition at line 13 of file Texture.cpp.
◆ GetHeight()
| uint32_t Cori::Graphics::Internal::OpenGLTexture2D::GetHeight |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
◆ GetStatus()
| AssetStatus Cori::Graphics::Texture::GetStatus |
( |
| ) |
const |
|
inlineinherited |
◆ GetWidth()
| uint32_t Cori::Graphics::Internal::OpenGLTexture2D::GetWidth |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
◆ HasSemiTransparency()
| bool Cori::Graphics::Internal::OpenGLTexture2D::HasSemiTransparency |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ Upload()
| void Cori::Graphics::Internal::OpenGLTexture2D::Upload |
( |
const void * | pixelData, |
|
|
const uint32_t | width, |
|
|
const uint32_t | height, |
|
|
const Params & | params ) |
|
overridevirtual |
◆ m_Status
The documentation for this class was generated from the following files: