|
Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine. GitHub | Vesper Updates | Creator |
An abstraction for a texture. More...
#include <Texture.h>
Public Member Functions | |
| virtual | ~Texture ()=default |
| virtual uint32_t | GetWidth () const =0 |
| Returns the width of the texture. | |
| virtual uint32_t | GetHeight () const =0 |
| Returns the height of the texture. | |
| virtual uint32_t | GetRendererID () const =0 |
| Returns the renderer ID of the texture. | |
| virtual void | Bind (uint32_t slot=0) const =0 |
| Binds the texture to the specified slot for use. | |
| virtual void | SetData (void *data, uint32_t size)=0 |
| Sets the data of the texture. | |
| virtual bool | operator== (const Texture2D &other) const =0 |
| virtual std::string | GetName () const =0 |
An abstraction for a texture.
|
virtualdefault |
|
pure virtual |
Binds the texture to the specified slot for use.
Implemented in Vesper::OpenGLTexture2D.
|
pure virtual |
Returns the height of the texture.
Implemented in Vesper::OpenGLTexture2D.
|
pure virtual |
Implemented in Vesper::OpenGLTexture2D.
|
pure virtual |
Returns the renderer ID of the texture.
Implemented in Vesper::OpenGLTexture2D.
|
pure virtual |
Returns the width of the texture.
Implemented in Vesper::OpenGLTexture2D.
|
pure virtual |
Implemented in Vesper::OpenGLTexture2D.
|
pure virtual |
Sets the data of the texture.
| data | Pointer to the data to be set. |
| size | Size of the data in bytes. |
Implemented in Vesper::OpenGLTexture2D.