|
CoriEngine
|
Abstract class for textures. More...
#include <Texture.hpp>

Classes | |
| struct | Params |
| Params to use when creating a texture. More... | |
Public Types | |
| enum | PixelFormat { RGBA8888 , RGB888 } |
| Available pixel formats. More... | |
| enum | WrapMode { CLAMP_TO_EDGE , CLAMP_TO_BORDER , REPEAT } |
| Available wrap modes. More... | |
| enum | Filter { LINEAR , NEAREST } |
| Available filtering options. More... | |
Public Member Functions | |
| virtual | ~Texture ()=default |
| virtual uint32_t | GetWidth () const =0 |
| Gives the texture width. | |
| virtual uint32_t | GetHeight () const =0 |
| Gives the texture height. | |
| virtual bool | HasSemiTransparency () const =0 |
| Checks if texture has semi transparency. | |
| virtual void | Bind (uint32_t slot) const =0 |
| Binds the texture to the slot. | |
| AssetStatus | GetStatus () const |
Protected Attributes | |
| AssetStatus | m_Status { AssetStatus::UNSPECIFIED } |
Abstract class for textures.
Definition at line 19 of file Texture.hpp.
Available wrap modes.
| Enumerator | |
|---|---|
| CLAMP_TO_EDGE | |
| CLAMP_TO_BORDER | |
| REPEAT | |
Definition at line 31 of file Texture.hpp.
|
virtualdefault |
|
pure virtual |
Binds the texture to the slot.
| slot | Slot to bound the texture to. |
Implemented in Cori::Graphics::Internal::OpenGLTexture2D.
|
nodiscardpure virtual |
Gives the texture height.
Implemented in Cori::Graphics::Internal::OpenGLTexture2D.
|
inline |
Definition at line 88 of file Texture.hpp.
|
nodiscardpure virtual |
Gives the texture width.
Implemented in Cori::Graphics::Internal::OpenGLTexture2D.
|
nodiscardpure virtual |
Checks if texture has semi transparency.
Implemented in Cori::Graphics::Internal::OpenGLTexture2D.
|
protected |
Definition at line 93 of file Texture.hpp.