Classes | Typedefs

include/VR3ShaderManager.h File Reference

Shader program manager class header file. More...

#include <map>
Include dependency graph for VR3ShaderManager.h:

Go to the source code of this file.

Classes

class  VR3ShaderManager
 The shader managing static class. More...
struct  VR3ShaderManager::UniformArray
 Structure identifying an array of uniforms associated to a standard rendering program. More...
struct  VR3ShaderManager::BgUniformArray
 Structure identifying an array of uniforms associated to a background rendering program. More...

Typedefs

typedef void(* f_prepareshader )(GLuint program, std::string &vs, std::string &gs, std::string &fs, std::string &es, const std::string *&ss)
 Standard shader preparation function typedef.
typedef void(* f_uniformloc )(GLuint)
 Standard uniform location discovery functions.

Detailed Description

Shader program manager class header file.

Author:
Daniele Giannetti
Version:
1.0
Date:
August 2010

This header file contains the VR3ShaderManager class declaration. This class may be only used statically and provides the functionalities necessary to build and use different shading programs depending on the desired rendering features (determined by the mesh properties).

Definition in file VR3ShaderManager.h.


Typedef Documentation

typedef void(* f_prepareshader)(GLuint program, std::string &vs, std::string &gs, std::string &fs, std::string &es, const std::string *&ss)

Standard shader preparation function typedef.

A shader preparation function is identified by the following type, it takes as parameters a set of source code string, filled by the shader preparation function with the source code for the single shader program components.

Definition at line 35 of file VR3ShaderManager.h.

typedef void(* f_uniformloc)(GLuint)

Standard uniform location discovery functions.

When a standard shader has been compiled and linked, the locations assigned to the uniform variables in the shader must be queried. This is done via one function of the following type.

Definition at line 44 of file VR3ShaderManager.h.

 All Classes Namespaces Files Functions Variables Typedefs Friends Defines