|
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 2D texture. More...
#include <Texture.h>
Static Public Member Functions | |
| static Ref< Texture2D > | Create (uint32_t width, uint32_t height) |
| static Ref< Texture2D > | Create (const std::string &path) |
Additional Inherited Members | |
| Public Member Functions inherited from Vesper::Texture | |
| 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 2D texture.
References Vesper::Renderer::GetAPI(), Vesper::RendererAPI::None, and Vesper::RendererAPI::OpenGL.
References Vesper::Renderer::GetAPI(), Vesper::RendererAPI::None, and Vesper::RendererAPI::OpenGL.