|
Public Member Functions |
bool | BeginPass () |
| Begins a new pass.
|
void | createMaterial (const String &materialName) |
| Does a material setup by name.
|
| EffectWrapper (Material *material) |
| Constructor.
|
| EffectWrapper () |
| Default constructor.
|
void | EndPass () |
| Signals the ending of the pass.
|
MaterialPtr & | getMaterial () |
| Retrieves the material pointer object of the material.
|
unsigned short | GetNumTechniques (void) const |
| Accessor for the number of techniques in the material.
|
bool | SetColourValue (const String &name, const ColourValue &colour) |
bool | SetDoubleArray (const String &name, double *value, size_t count) |
bool | SetFloat (const String &name, float value) |
bool | SetFloatArray (const String &name, const float *value, size_t count) |
void | SetFragmentProgramParameters () |
| Switches to fragment program parameter setup.
|
bool | SetInt (const String &name, int value) |
bool | SetIntArray (const String &name, const int *value, size_t count) |
void | setMaterial (Material *material) |
| Does a material setup by pointer.
|
bool | SetMatrix (const String &name, Matrix4 &value) |
bool | SetMatrixArray (const String &name, Matrix4 *value, size_t numEntries) |
bool | SetMatrixTranspose (const String &name, Matrix4 &value) |
bool | SetMatrixTransposeArray (const String &name, Matrix4 *value, size_t numEntries) |
bool | SetReal (const String &name, Real value) |
void | SetShadowCasterProgramParameters () |
| Switches to shadow caster program parameter setup.
|
void | SetShadowReceiverProgramParameters () |
| Switches to shadow receiver program parameter setup.
|
bool | SetTechniqueToUse (int numberOfTechnique) |
| Setup for the material techniques.
|
bool | SetTexture (int textureUnit, const String &textureName) |
bool | SetVector3 (const String &name, const Vector3 &vec) |
bool | SetVector4 (const String &name, const Vector4 &vec) |
void | SetVertexProgramParameters () |
| Switches to vertex program parameter setup.
|
| ~EffectWrapper () |
| Destructor.
|
Private Member Functions |
bool | validateSet () |
| Validates whether we can set a parameter to the material or no.
|
Private Attributes |
bool | canSetNewTechnique |
| True if new technique could be set.
|
bool | fragmentProgramParams |
| True if parameters should be set for the fragment shader.
|
MaterialPtr | material |
| Pointer to the material instance.
|
int | numberOfCurrentPass |
| Number of current pass.
|
int | numberOfCurrentTechnique |
| Number of current technique.
|
bool | shadowCasterParams |
| True if parameters should be set for the shadow caster shader program.
|
bool | shadowReceiverParams |
| True if parameters should be set for the shadow receiver shader program.
|
bool | vertexProgramParams |
| True if parameters should be set for the vertex shader.
|