Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
 All Classes Namespaces Functions Pages
Public Member Functions | List of all members
ColorMaterial Class Reference

#include <ColorMaterial.h>

Inheritance diagram for ColorMaterial:
Material

Public Member Functions

 ColorMaterial (const glm::vec3 &color)
 
const glm::vec3 & getColor () const
 
void setColor (const glm::vec3 &color)
 
virtual void setUniforms (Shader *shader)
 

Detailed Description

Simple material that contains one color to color an entire MeshInstance

Member Function Documentation

void ColorMaterial::setUniforms ( Shader shader)
virtual

Purely virtual function to set the shader uniforms of the material before a mesh is drawn.

Implements Material.


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