26 #include <Eigen/Dense> 53 #ifdef TUCANOSHADERDIR 95 virtual Shader*
loadShader (
string shader_name,
string vertex_name,
string frag_name,
string geom_name)
97 Shader* shader_ptr =
new Shader(shader_name, vertex_name, frag_name, geom_name);
string shaders_dir
Directory in which the shader files are stored.
Definition: effect.hpp:135
virtual void initialize(void)=0
Initializes all effect's funcionality.
Definition: bufferobject.hpp:34
void initialize(void)
Calls all the functions related to the shader initialization, i.e., creates, loads the shaders from t...
Definition: shader.hpp:641
std::vector< Shader * > shaders_list
Vector of pointers to shaders used in this effect, in case the user needs multiple pass rendering...
Definition: effect.hpp:132
A Shader object represents one GLSL program.
Definition: shader.hpp:45
virtual void reloadShaders(void)
Reloads all shaders needed for effect usage.
Definition: effect.hpp:118
virtual Shader * loadShader(string shader_name, string vertex_name, string frag_name, string geom_name)
Loads a shader by complete filenames (with extensions), initializes it, and inserts in shaders list...
Definition: effect.hpp:95
Effect(string shadersDir="shaders/")
Default constructor.
Definition: effect.hpp:51
virtual Shader * loadShader(string shader_name)
Loads a shader by filename, initializes it, and inserts in shaders list.
Definition: effect.hpp:73
void load(string name, string shader_dir="")
Loads a shader given a directory and a name. Searches for all shader extensions in directory...
Definition: shader.hpp:436
#define stringify(x)
Definition: misc.hpp:33
virtual void loadShader(Shader &shader, string shader_name)
Definition: effect.hpp:81
void setShadersDir(string dir)
Definition: effect.hpp:108
The Effect class is a holder for Shaders. It is completely optional, but is contains a few methods fo...
Definition: effect.hpp:43