
Public Member Functions | |
| virtual uint32 MCCOMAPI | GetInstancesCount ()=0 |
| virtual void MCCOMAPI | GetInstanceArray (TMCCountedPtrArray< I3DShTreeElement > &instances)=0 |
| virtual MCCOMErr MCCOMAPI | SetName (const TMCString &name)=0 |
| virtual MCCOMErr MCCOMAPI | GetName (TMCString &name)=0 |
| virtual MCCOMErr MCCOMAPI | SetShader (I3DShShader *shader, ECloneMode cloneMode)=0 |
| virtual MCCOMErr MCCOMAPI | GetShader (I3DShShader **shader)=0 |
| virtual MCCOMErr MCCOMAPI | SetDisplacementShader (I3DShShader *shader, ECloneMode cloneMode)=0 |
| virtual MCCOMErr MCCOMAPI | GetDisplacementShader (I3DShShader **shader)=0 |
| virtual MCCOMErr MCCOMAPI | Clone (I3DShMasterShader **clone, ECloneMode cloneMode, boolean cloneDisplacementMapping=true) const =0 |
| virtual MCCOMErr MCCOMAPI | GetScene (I3DShScene **scene) const =0 |
| virtual boolean MCCOMAPI | IsDefaultMaster () const =0 |
| virtual I3DShMaster *MCCOMAPI | GetThisMaster ()=0 |
It supports multiple interfaces such as IMaster and ISelectableObject
| virtual uint32 MCCOMAPI I3DShMasterShader::GetInstancesCount | ( | ) | [pure virtual] |
Returns the number of instances of this master in the scene.
| virtual void MCCOMAPI I3DShMasterShader::GetInstanceArray | ( | TMCCountedPtrArray< I3DShTreeElement > & | instances | ) | [pure virtual] |
Returns an array of all the instances that points to that class.
| instances | An array of instances. |
Sets the name of a master. Note that you should not call this method once the master is inserted in a scene because it does not garantee the unicity of the name.
If you want to change the name of a Master Shader once it is inserted in a scene, you should call I3DShScene::RenameMasterShader().
| name | The new name of the master. |
Returns the name of the Master Shader.
| name | The name of the Master Shader. |
| virtual MCCOMErr MCCOMAPI I3DShMasterShader::SetShader | ( | I3DShShader * | shader, | |
| ECloneMode | cloneMode | |||
| ) | [pure virtual] |
Sets the shader tree that defines this Master Shader.
| shader | A pointer to the root of the shader tree. | |
| cloneMode | The clone Mode (see ECloneMode). |
| virtual MCCOMErr MCCOMAPI I3DShMasterShader::GetShader | ( | I3DShShader ** | shader | ) | [pure virtual] |
Returns a pointer to the shader tree that defines this Master Shader.
| shader | A pointer to the root of the shader tree. |
| virtual MCCOMErr MCCOMAPI I3DShMasterShader::SetDisplacementShader | ( | I3DShShader * | shader, | |
| ECloneMode | cloneMode | |||
| ) | [pure virtual] |
Sets the displacement shader tree that defines this Master Shader.
| shader | A pointer to the root of the displacement shader tree. | |
| cloneMode | The clone Mode (see ECloneMode). |
| virtual MCCOMErr MCCOMAPI I3DShMasterShader::GetDisplacementShader | ( | I3DShShader ** | shader | ) | [pure virtual] |
Returns a pointer to the displacement shader tree that defines this Master Shader.
| shader | A pointer to the root of the shader tree. |
| virtual MCCOMErr MCCOMAPI I3DShMasterShader::Clone | ( | I3DShMasterShader ** | clone, | |
| ECloneMode | cloneMode, | |||
| boolean | cloneDisplacementMapping = true | |||
| ) | const [pure virtual] |
Makes a copy of the Master Shader.
| clone | The copy that is returned. | |
| cloneMode | The clone Mode (see ECloneMode). | |
| cloneDisplacementMapping | Clone the displacement mapping |
| virtual MCCOMErr MCCOMAPI I3DShMasterShader::GetScene | ( | I3DShScene ** | scene | ) | const [pure virtual] |
Returns a pointer to the scene that contains this Master Shader.
| scene | A pointer to the scene that contains this Master Shader. (NULL if it is not inserted in a scene. |
| virtual boolean MCCOMAPI I3DShMasterShader::IsDefaultMaster | ( | ) | const [pure virtual] |
Returns true if the Master Shader is the default Master Shaders.
| virtual I3DShMaster* MCCOMAPI I3DShMasterShader::GetThisMaster | ( | ) | [pure virtual] |
Returns the I3DShMaster interface.
1.5.3