![]() |
Elevate Engine 1
|
#include <Texture.h>
Public Member Functions | |
| virtual | ~Texture ()=default |
| void | SetData (unsigned char *data, TextureMetadata &meta) |
| virtual void * | GetNativeHandle () const =0 |
| 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 |
Static Public Member Functions | |
| 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 | |
| Texture ()=default | |
| Texture (TextureMetadata meta) | |
| virtual void | SetDataImpl (unsigned char *data)=0 |
Protected Attributes | |
| TextureMetadata | m_meta |
Friends | |
| class | Renderer |
|
virtualdefault |
|
protecteddefault |
|
inlineprotected |
|
static |
Definition at line 27 of file Texture.cpp.
|
static |
Definition at line 56 of file Texture.cpp.
|
static |
Definition at line 87 of file Texture.cpp.
|
static |
Definition at line 22 of file Texture.cpp.
|
inline |
|
inline |
|
inline |
|
pure virtual |
Implemented in Elevate::OpenGLTexture.
|
inline |
|
inline |
|
inline |
| bool Elevate::Texture::MatchesPath | ( | std::string | pathToMatch | ) |
Definition at line 15 of file Texture.cpp.
|
inline |
|
protectedpure virtual |
Implemented in Elevate::OpenGLTexture.
|
protected |