|
typedef std::function< void(GLuint, GLuint)> | BindFunction |
|
static void | killShaders () |
|
static T * | getInstance () |
| Used to get the instance.
|
|
static void | kill () |
| Used to kill the singleton, if needed.
|
|
std::vector< GLuint > | m_sampler_ids |
|
enum | AttributeType { OBJECT
, PARTICLES_SIM
, PARTICLES_RENDERING
, SKINNED_MESH
} |
|
GLuint | createSamplers (SamplerTypeNew sampler_type) |
|
template<typename... U> |
void | assignUniforms (U... rest) |
| This variadic template collects all names of uniforms in a std::vector.
|
|
template<typename ... Types> |
void | printFileList (GLint shader_type, const char *filepath, Types ... args) |
| Variadic template to print a list of file names.
|
|
template<typename ... Types> |
void | loadAndAttachShader () |
| Ends recursion.
|
|
template<typename ... Types> |
void | loadAndAttachShader (GLint shader_type, const std::string &name, Types ... args) |
|
template<typename ... Types> |
void | loadAndAttachShader (GLint shader_type, const char *name, Types ... args) |
| Convenience interface using const char.
|
|
| Singleton () |
| Constructor.
|
|
virtual | ~Singleton () |
| Destructor.
|
|
static void | bindTextureNearest (GLuint tex_unit, GLuint tex_id) |
|
static void | bindTextureBilinear (GLuint texture_unit, GLuint tex_id) |
|
static void | bindTextureBilinearClamped (GLuint tex_unit, GLuint tex_id) |
|
static void | bindTextureNearestClamped (GLuint tex_unit, GLuint tex_id) |
|
static void | bindTextureTrilinearAnisotropic (GLuint tex_unit, GLuint tex_id) |
|
static void | bindTextureSemiTrilinear (GLuint tex_unit, GLuint tex_id) |
|
static void | bindCubemapTrilinear (GLuint tex_unit, GLuint tex_id) |
|
static void | bindTextureShadow (GLuint tex_unit, GLuint tex_id) |
|
static void | bindTrilinearClampedArrayTexture (GLuint tex_unit, GLuint tex_id) |
|
static void | bindTextureVolume (GLuint tex_unit, GLuint tex_id) |
|
static void | bindTextureBuffer (GLuint tex_unit, GLuint tex_id) |
|
std::vector< BindFunction > | m_bind_functions |
|
GLuint | m_program |
| OpenGL's program id.
|
|
std::vector< std::shared_ptr< GLuint > > | m_shaders |
|
static BindFunction | m_all_bind_functions [] |
|
static GLuint | m_all_texture_types [] |
|
static std::vector< void(*)()> | m_all_kill_functions |
| Maintains a list of all shaders.
|
|