virtual ZRESULT createMaterial(
rend::IMaterial** ppMat,
LPCTSTR pszClass=NULL,
bool bAddIt=false)=0;
Description
Creates material. You can specify class name of new material,
or material class will be taken from current
compatibility info. You can also specify whether it's needed to add
created material into a set of materials and method will raise
EVENT_MATERIAL_ADD
event in such a case.
Parameters:
- ppMat
- Ret-val argument with an address for
rend::IMaterial
interface.
- pszClass
- Optional argument with a class name of material instance
to create. By default materials service will use
material class name from current compatibility info.
- bAddIt
- Set to true to add created material to
the set of materials. You can add it later with
insertMaterial method.
See Also:
- Interface overview and methods
- addMaterialClass method
- insertMaterial method
- rend::IMaterial interface
- core::ICompatibilityInfo::getMaterialClassName method