#include <ShaderMaterial.h>
Inheritance diagram for Propane::Material::ShaderMaterial:

Public Member Functions | |
| ShaderMaterial (Propane::Shader::Program *newProgram) | |
| virtual | ~ShaderMaterial () |
| virtual void | apply () |
| virtual void | unApply () |
| virtual bool | canUse () |
| virtual void | useCoordinate (const Propane::Vector3 &xyz) |
|
|
Basic constructor that takes a Propane::Shader::Program and acquires the v_in uniform for it. If that uniform is not found, it will not be used in useCoordinate() but all other shader operations will continue normally. Errors are emitted to stderr.
|
|
|
Basic destructor that deletes the program |
|
|
Turns the shader on, disabling fixed function pipeline. Implements Propane::Material::BaseMaterial. |
|
|
Uses the shader's isSupported and isReady methods to check for hardware compatibility.
Implements Propane::Material::BaseMaterial. |
|
|
Turns the shader off and returns to fixed function mode Implements Propane::Material::BaseMaterial. |
|
|
If present, passes the vector to uniform vector3 v_in in the shader
Implements Propane::Material::BaseMaterial. |
1.4.6