|
Muto 0.0.1
|
#include <OpenGLTexture.h>
Public Member Functions | |
| virtual void | Bind (uint32_t slot) const override |
| Binds the texture to the specified slot for use. | |
| virtual uint32_t | GetHeight () const override |
| Returns the height of the texture. | |
| virtual std::string | GetName () const override |
| virtual uint32_t | GetRendererID () const override |
| Returns the renderer ID of the texture. | |
| virtual uint32_t | GetWidth () const override |
| Returns the width of the texture. | |
| OpenGLTexture2D (const std::string &path) | |
| OpenGLTexture2D (uint32_t width, uint32_t height) | |
| virtual bool | operator== (const Texture2D &other) const override |
| virtual void | SetData (void *data, uint32_t size) override |
| Sets the data of the texture. | |
| virtual | ~OpenGLTexture2D () |
Public Member Functions inherited from Muto::Texture | |
| virtual | ~Texture ()=default |
Private Attributes | |
| GLenum | m_DataFormat |
| uint32_t | m_Height |
| GLenum | m_InternalFormat |
| std::string | m_Path |
| uint32_t | m_RendererID |
| uint32_t | m_Width |
Additional Inherited Members | |
Static Public Member Functions inherited from Muto::Texture2D | |
| static Ref< Texture2D > | Create (const std::string &path) |
| static Ref< Texture2D > | Create (uint32_t width, uint32_t height) |
| Muto::OpenGLTexture2D::OpenGLTexture2D | ( | const std::string & | path | ) |
References m_Height, m_Path, m_RendererID, and m_Width.
|
virtual |
References m_RendererID.
|
overridevirtual |
|
inlineoverridevirtual |
Implements Muto::Texture.
References m_RendererID.
Sets the data of the texture.
| data | Pointer to the data to be set. |
| size | Size of the data in bytes. |
Implements Muto::Texture.
|
private |
|
private |
Referenced by GetHeight(), OpenGLTexture2D(), and OpenGLTexture2D().
|
private |
|
private |
Referenced by GetName(), and OpenGLTexture2D().
|
private |
Referenced by Bind(), GetRendererID(), OpenGLTexture2D(), operator==(), and ~OpenGLTexture2D().
|
private |
Referenced by GetWidth(), OpenGLTexture2D(), and OpenGLTexture2D().