MaterialList

Engine/source/materials/materialList.h

More...

Private Types

enum
Constants {  BINARY_FILE_VERSION = 1
}

Public Attributes

Protected Attributes

Public Functions

Note: this is not to be confused with MaterialList(const MaterialList&).

MaterialList(U32 materialCount, const char ** materialNames)
bool

Return the material instance or NULL if the index is out of bounds.

Initialize material instances in material list.

push_back(const String & filename, Material * )
bool
read(Stream & stream)
bool
readText(Stream & stream)
bool
readText(Stream & stream, U8 firstByte)
set(U32 materialCount, const char ** materialNames)
bool
write(Stream & stream)
bool
writeText(Stream & stream)

Protected Functions

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