BaseMatInstance Class Reference#include <baseMatInstance.h>
Inheritance diagram for BaseMatInstance:
[legend]List of all members.
|
Public Member Functions |
virtual | ~BaseMatInstance () |
virtual void | addStateBlockDesc (const GFXStateBlockDesc &desc)=0 |
| Add this stateblock to the base state block and recalculate everything.
|
virtual MaterialParameters * | allocMaterialParameters ()=0 |
| Get a MaterialParameters block for this BaseMatInstance, caller is responsible for freeing it.
|
virtual void | setMaterialParameters (MaterialParameters *param)=0 |
| Set the current parameters for this BaseMatInstance.
|
virtual MaterialParameters * | getMaterialParameters ()=0 |
| Get the current parameters for this BaseMatInstance (BaseMatInstances are created with a default active MaterialParameters which is managed by BaseMatInstance.
|
virtual MaterialParameterHandle * | getMaterialParameterHandle (const String &name)=0 |
| Returns a MaterialParameterHandle for name.
|
virtual bool | setupPass (SceneState *, const SceneGraphData &sgData)=0 |
virtual void | setTransforms (const MatrixF &world, const MatrixF &view, const MatrixF &projection)=0 |
virtual void | setLightInfo (SceneState *, const SceneGraphData &sgData)=0 |
virtual void | setEyePosition (MatrixF objTrans, Point3F position)=0 |
virtual void | setBuffers (GFXVertexBufferHandleBase *vertBuffer, GFXPrimitiveBufferHandle *primBuffer)=0 |
virtual void | setTextureStages (SceneState *, const SceneGraphData &sgData)=0 |
virtual void | init (const GFXMaterialFeatureData::FeatureListHandle instanceData, const GFXMaterialFeatureData::FeatureListHandle globalData, GFXVertexFlags vertFlags)=0 |
virtual void | reInit (const GFXMaterialFeatureData::FeatureListHandle globalData)=0 |
virtual BaseMaterialDefinition * | getMaterial ()=0 |
virtual bool | hasGlow ()=0 |
virtual U32 | getCurPass ()=0 |
virtual U32 | getCurStageNum ()=0 |
virtual RenderPassData * | getPass (U32 pass)=0 |
virtual GFXMaterialFeatureData::FeatureListHandle | getFeatureData () const =0 |
virtual const GFXVertexFlags | getVertFlags () const =0 |
virtual void | dumpShaderInfo () const |
Public Attributes |
String | mMatNameStr |
MatInstanceHook * | mLightingHook |
Constructor & Destructor Documentation
virtual BaseMatInstance::~BaseMatInstance |
( |
|
) |
[inline, virtual] |
Member Function Documentation
Add this stateblock to the base state block and recalculate everything.
Implemented in MatInstance.
virtual void BaseMatInstance::setTransforms |
( |
const MatrixF & |
world, |
|
|
const MatrixF & |
view, |
|
|
const MatrixF & |
projection | |
|
) |
| | [pure virtual] |
virtual void BaseMatInstance::setEyePosition |
( |
MatrixF |
objTrans, |
|
|
Point3F |
position | |
|
) |
| | [pure virtual] |
- Parameters:
-
| instanceData | Should contain all of the features that this instance can support. For example, if it supports lightmaps then LightMap should be turned on, but if it's an instance for a mesh without lightmaps, then lightmap should be off. |
| globalData | Used to turn features on and off at a more broad level. By default, just get the one from the MaterialManager. This and instance data are AND'ed together and used with the material setup to figure out which features to turn on and off. |
| vertFlags | The vertex type to be used with this instance. |
Implemented in MatInstance.
virtual bool BaseMatInstance::hasGlow |
( |
|
) |
[pure virtual] |
virtual U32 BaseMatInstance::getCurPass |
( |
|
) |
[pure virtual] |
virtual U32 BaseMatInstance::getCurStageNum |
( |
|
) |
[pure virtual] |
virtual const GFXVertexFlags BaseMatInstance::getVertFlags |
( |
|
) |
const [pure virtual] |
virtual void BaseMatInstance::dumpShaderInfo |
( |
|
) |
const [inline, virtual] |
Member Data Documentation
|