Doxybook2 Example
|
This is a base texture class that serves as a base class for other texture types. More...
#include <Texture.hpp>
Public Types | |
enum | Type { Type::UNKNOWN = 0, Type::RGBA_8, Type::RGB_8, Type::RGBA_16, Type::RGB_16, Type::RGBA_32, Type::RGB_32 } |
Public Member Functions | |
Texture (Type type) | |
virtual | ~Texture ()=default |
virtual int | getWidth () const =0 |
Returns the width of the texture in pixels. More... | |
virtual int | getHeight () const =0 |
Returns the height of the texture in pixels. More... | |
virtual int | getDepth () const =0 |
Returns the depth of the texture in pixels. More... | |
bool | isLoaded () const |
Protected Attributes | |
bool | loaded {false} |
Type | type |
Protected Attributes inherited from Engine::Graphics::Handle | |
int | handle |
Additional Inherited Members | |
Protected Member Functions inherited from Engine::Graphics::Handle | |
Handle ()=default | |
virtual | ~Handle ()=default |
int | getHandle () const |
This is a base texture class that serves as a base class for other texture types.
|
strong |
|
explicit |
|
virtualdefault |
|
pure virtual |
Returns the depth of the texture in pixels.
Implemented in Engine::Graphics::Texture2D, Engine::Graphics::Texture3D, and Engine::Graphics::Framebuffer.
|
pure virtual |
Returns the height of the texture in pixels.
Implemented in Engine::Graphics::Texture2D, Engine::Graphics::Texture3D, and Engine::Graphics::Framebuffer.
|
pure virtual |
Returns the width of the texture in pixels.
Implemented in Engine::Graphics::Texture2D, Engine::Graphics::Texture3D, and Engine::Graphics::Framebuffer.
|
inline |
Does some more things
|
protected |
|
protected |