|
Monad Engine da02fba2
> Undercity Codex_
|
#include <Texture.h>
Public Member Functions | |
| Texture (int width, int height, int numChannels, unsigned char *data) | |
| ~Texture () | |
| GLuint | GetID () const |
| void | Init (int width, int height, int numChannels, unsigned char *data) |
Static Public Member Functions | |
| static std::shared_ptr< Texture > | Load (const std::string &path) |
| eng::Texture::Texture | ( | int | width, |
| int | height, | ||
| int | numChannels, | ||
| unsigned char * | data | ||
| ) |
Definition at line 9 of file Texture.cpp.
References Init().
| eng::Texture::~Texture | ( | ) |
Definition at line 15 of file Texture.cpp.
| GLuint eng::Texture::GetID | ( | ) | const |
Definition at line 23 of file Texture.cpp.
Referenced by eng::ShaderProgram::SetTexture().
| void eng::Texture::Init | ( | int | width, |
| int | height, | ||
| int | numChannels, | ||
| unsigned char * | data | ||
| ) |
Definition at line 28 of file Texture.cpp.
Referenced by Texture().
|
static |
Definition at line 53 of file Texture.cpp.
References eng::FileSystem::GetAssetsFolder(), eng::Engine::GetFileSystem(), and eng::Engine::GetInstance().
Referenced by eng::TextureManager::GetOrLoadTexture(), Game::Init(), eng::Material::Load(), eng::MeshComponent::LoadProperties(), and eng::SpriteComponent::LoadProperties().