Face3d
Face3D::Texture Class Reference

#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 TextureInstance ()
 

Private Member Functions

 Texture ()
 

Private Attributes

std::map< std::string, GLuint > m_TextureCache
 
GLuint samplerID = 0
 
TextureSetting m_CurrSetting
 

Detailed Description

singleton class to load textures

Member Enumeration Documentation

Enumerator
TextureLinear 
TextureNearest 
TextureMIPNearest 
TextureMIPLinear 

Constructor & Destructor Documentation

Face3D::Texture::Texture ( )
private

Member Function Documentation

void Face3D::Texture::changeTextureSettings ( TextureSetting  setting)
GLuint Face3D::Texture::getSamplerID ( )
TextureSetting Face3D::Texture::getSetting ( ) const
inline
Texture & Face3D::Texture::Instance ( )
static
GLuint Face3D::Texture::Texture::loadFromImage ( const std::string &  fileName)

Member Data Documentation

TextureSetting Face3D::Texture::m_CurrSetting
private
std::map<std::string, GLuint> Face3D::Texture::m_TextureCache
private
GLuint Face3D::Texture::samplerID = 0
private

The documentation for this class was generated from the following files: