|
Muto 0.0.1
|
An abstraction for a texture. More...
#include <Texture.h>
Public Member Functions | |
| virtual void | Bind (uint32_t slot=0) const =0 |
| Binds the texture to the specified slot for use. | |
| virtual uint32_t | GetHeight () const =0 |
| Returns the height of the texture. | |
| virtual std::string | GetName () const =0 |
| virtual uint32_t | GetRendererID () const =0 |
| Returns the renderer ID of the texture. | |
| virtual uint32_t | GetWidth () const =0 |
| Returns the width of the texture. | |
| virtual bool | operator== (const Texture2D &other) const =0 |
| virtual void | SetData (void *data, uint32_t size)=0 |
| Sets the data of the texture. | |
| virtual | ~Texture ()=default |
An abstraction for a texture.
|
virtualdefault |
Binds the texture to the specified slot for use.
Implemented in Muto::OpenGLTexture2D.
Returns the height of the texture.
Implemented in Muto::OpenGLTexture2D.
|
pure virtual |
Implemented in Muto::OpenGLTexture2D.
Returns the renderer ID of the texture.
Implemented in Muto::OpenGLTexture2D.
Returns the width of the texture.
Implemented in Muto::OpenGLTexture2D.
Implemented in Muto::OpenGLTexture2D.
Sets the data of the texture.
| data | Pointer to the data to be set. |
| size | Size of the data in bytes. |
Implemented in Muto::OpenGLTexture2D.