Tucano
0.1
A library for rapid prototyping with modern OpenGL and GLSL
|
Renders a mesh using a normal map as colors. More...
#include <normalmap.hpp>
Public Member Functions | |
NormalMap (void) | |
Default constructor. More... | |
virtual void | initialize (void) |
Load and initialize shaders. More... | |
virtual void | render (Tucano::Mesh &mesh, const Tucano::Trackball &cameraTrackball) |
Render the mesh given a camera trackball. More... | |
Public Member Functions inherited from Tucano::Effect | |
Effect (string shadersDir="shaders/") | |
Default constructor. More... | |
virtual Shader * | loadShader (string shader_name) |
Loads a shader by filename, initializes it, and inserts in shaders list. More... | |
virtual void | loadShader (Shader &shader, string shader_name) |
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. More... | |
void | setShadersDir (string dir) |
virtual void | reloadShaders (void) |
Reloads all shaders needed for effect usage. More... | |
Private Attributes | |
Tucano::Shader | normalmap_shader |
NormalMap Shader. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Tucano::Effect | |
std::vector< Shader * > | shaders_list |
Vector of pointers to shaders used in this effect, in case the user needs multiple pass rendering. More... | |
string | shaders_dir |
Directory in which the shader files are stored. More... | |
Renders a mesh using a normal map as colors.
|
inline |
Default constructor.
|
inlinevirtual |
Load and initialize shaders.
Implements Tucano::Effect.
|
inlinevirtual |
Render the mesh given a camera trackball.
mesh | Given mesh |
cameraTrackball | Given camera trackball |
|
private |