|
Muto 0.0.1
|
An abstraction for a 2D texture. More...
#include <Texture.h>
Static Public Member Functions | |
| static Ref< Texture2D > | Create (const std::string &path) |
| static Ref< Texture2D > | Create (uint32_t width, uint32_t height) |
Additional Inherited Members | |
Public Member Functions inherited from Muto::Texture | |
| 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 2D texture.
References Muto::Renderer::GetAPI(), Muto::RenderAPI::RAPI_None, and Muto::RenderAPI::RAPI_OpenGL.
References Muto::Renderer::GetAPI(), Muto::RenderAPI::RAPI_None, and Muto::RenderAPI::RAPI_OpenGL.