MaterialList
Engine/source/materials/materialList.h
Private Types
Constants { BINARY_FILE_VERSION = 1 }
Public Attributes
Protected Attributes
Material 'mapTo' targets.
Public Functions
Note: this is not to be confused with MaterialList(const MaterialList&).
MaterialList(U32 materialCount, const char ** materialNames)
bool
empty()
getDiffuseTexture(U32 index)
getMaterialInst(U32 index)
Return the material instance or NULL if the index is out of bounds.
getMaterialName(U32 index)
initMatInstances(const FeatureSet & features, const GFXVertexFormat * vertexFormat)
Initialize material instances in material list.
setMaterialInst(BaseMatInstance * matInst, U32 index)
setMaterialName(U32 index, const String & name)
setTextureLookupPath(const String & path)
Protected Functions
mapMaterial(U32 index)
Map the material name at the given index to a material instance.
Detailed Description
Private Types
Constants
Enumerator
- BINARY_FILE_VERSION = 1
Public Attributes
Vector< BaseMatInstance * > mMatInstList
Protected Attributes
String mLookupPath
Vector< String > mMaterialNames
Material 'mapTo' targets.
Public Functions
MaterialList()
MaterialList(const MaterialList * )
Note: this is not to be confused with MaterialList(const MaterialList&).
Copying a material list in the middle of it's lifetime is not a good thing, so we force it to copy at construction time by restricting the copy syntax to ML* pML = new ML(©);
MaterialList(U32 materialCount, const char ** materialNames)
~MaterialList()
clearMatInstList()
empty()
free()
Reimplemented by: TSMaterialList
getDiffuseTexture(U32 index)
getMaterialInst(U32 index)
Return the material instance or NULL if the index is out of bounds.
getMaterialName(U32 index)
getMaterialNameList()
initMatInstances(const FeatureSet & features, const GFXVertexFormat * vertexFormat)
Initialize material instances in material list.
mapMaterials()
push_back(const String & filename, Material * )
read(Stream & stream)
readText(Stream & stream)
readText(Stream & stream, U8 firstByte)
set(U32 materialCount, const char ** materialNames)
setMaterialInst(BaseMatInstance * matInst, U32 index)
setMaterialName(U32 index, const String & name)
setTextureLookupPath(const String & path)
size()
write(Stream & stream)
writeText(Stream & stream)
Protected Functions
mapMaterial(U32 index)
Map the material name at the given index to a material instance.
note:The material instance that is created will not be initialized.
Reimplemented by: TSMaterialList