![]() |
Elevate Engine 1
|
#include <OpenGLTexture.h>
Public Member Functions | |
| OpenGLTexture (unsigned char *data, TextureMetadata &meta) | |
| virtual void | SetDataImpl (unsigned char *data) override |
| virtual void * | GetNativeHandle () const override |
Public Member Functions inherited from Elevate::Texture | |
| virtual | ~Texture ()=default |
| void | SetData (unsigned char *data, TextureMetadata &meta) |
| bool | IsTextureLoaded () const |
| bool | MatchesPath (std::string pathToMatch) |
| const std::string & | GetName () const |
| const std::string & | GetPath () const |
| const uint32_t | GetWidth () const |
| const uint32_t | GetHeight () const |
| const TextureType | GetUsage () const |
| const TextureMetadata & | GetMetadata () const |
Additional Inherited Members | |
Static Public Member Functions inherited from Elevate::Texture | |
| static TexturePtr | CreateFromFile (const std::string &path, TextureType usage=TextureType::Diffuse) |
| static TexturePtr | CreateFromColor (const glm::vec3 &color, const std::string &name, uint32_t width=1, uint32_t height=1) |
| static TexturePtr | CreateFromColor (const glm::vec4 &color, const std::string &name, uint32_t width=1, uint32_t height=1) |
| static TexturePtr | CreateFromData (unsigned char *data, TextureMetadata &meta) |
Protected Member Functions inherited from Elevate::Texture | |
| Texture ()=default | |
| Texture (TextureMetadata meta) | |
Protected Attributes inherited from Elevate::Texture | |
| TextureMetadata | m_meta |
Definition at line 7 of file OpenGLTexture.h.
| Elevate::OpenGLTexture::OpenGLTexture | ( | unsigned char * | data, |
| TextureMetadata & | meta | ||
| ) |
Definition at line 72 of file OpenGLTexture.cpp.
|
overridevirtual |
Implements Elevate::Texture.
Definition at line 123 of file OpenGLTexture.cpp.
|
overridevirtual |
Implements Elevate::Texture.
Definition at line 93 of file OpenGLTexture.cpp.