25 #include "glm/gtc/type_ptr.hpp" 110 if (rebuildProgram) {
123 if (rebuildProgram) {
Shader renderable, a class for easier managing of a collection of items (surface, material...
Shader::ShaderObject * getFragmentShader() const
ShaderSurface * getSurface()
void setSurface(Shader::ShaderSurface *surface, bool rebuildProgram=true)
ShaderMaterial * getMaterial()
ShaderMaterial * _material
void setMesh(Mesh::Mesh *mesh)
void bindProgram(Shader::ShaderProgram *program)
void copyRenderable(Shader::ShaderRenderable *src)
ShaderProgram * getProgram()
void bindProgram(Shader::ShaderProgram *program)
#define ShaderMan
Shortcut for accessing the shader manager.
Shader::ShaderObject * getVertexShader() const
const ShaderRenderable & operator=(const ShaderRenderable &src)
void renderImmediate(const glm::mat4 &tform, float alpha=1.0f)
void setMaterial(Shader::ShaderMaterial *material, bool rebuildProgram=true)