|
Face3d
|
#include <Texture.hpp>
Public Types | |
| enum | TextureSetting { TextureLinear, TextureNearest, TextureMIPNearest, TextureMIPLinear } |
Public Member Functions | |
| GLuint | Texture::loadFromImage (const std::string &fileName) |
| GLuint | getSamplerID () |
| TextureSetting | getSetting () const |
| void | changeTextureSettings (TextureSetting setting) |
Static Public Member Functions | |
| static Texture & | Instance () |
Private Member Functions | |
| Texture () | |
Private Attributes | |
| std::map< std::string, GLuint > | m_TextureCache |
| GLuint | samplerID = 0 |
| TextureSetting | m_CurrSetting |
singleton class to load textures
|
private |
| void Face3D::Texture::changeTextureSettings | ( | TextureSetting | setting | ) |
| GLuint Face3D::Texture::getSamplerID | ( | ) |
|
inline |
|
static |
| GLuint Face3D::Texture::Texture::loadFromImage | ( | const std::string & | fileName | ) |
|
private |
|
private |
|
private |