TSMaterialList

Engine/source/ts/tsMaterialList.h

Specialized material list for 3space objects.

More...

IO

Functions for reading/writing to/from streams

bool
bool

Public Types

enum
_Anonymous_ {
  S_Wrap = BIT(0)
  T_Wrap = BIT(1)
  Translucent = BIT(2)
  Additive = BIT(3)
  Subtractive = BIT(4)
  SelfIlluminating = BIT(5)
  NeverEnvMap = BIT(6)
  NoMipMap = BIT(7)
  MipMap_ZeroBorder = BIT(8)
  AuxiliaryMap = BIT(27) | BIT(28) | BIT(29) | BIT(30) | BIT(31)
}

Private Types

Parent 

Private Functions

Public Functions

TSMaterialList(U32 materialCount, const char ** materialNames, const U32 * materialFlags, const U32 * reflectanceMaps, const U32 * bumpMaps, const U32 * detailMaps, const F32 * detailScales, const F32 * reflectionAmounts)
getFlags(U32 index)
push_back(const char * name, U32 flags, Material * mat)
push_back(const String & name, U32 flags, U32 a, U32 b, U32 c, F32 dm, F32 em)

pre-load only

bool
renameMaterial(U32 index, const String & newName)
setFlags(U32 index, U32 value)

Protected Functions

Map the material name at the given index to a material instance.

Detailed Description

Specialized material list for 3space objects.

IO

Functions for reading/writing to/from streams

write(Stream & )

read(Stream & )

Public Types

@205

Enumerator

S_Wrap = BIT(0)
T_Wrap = BIT(1)
Translucent = BIT(2)
Additive = BIT(3)
Subtractive = BIT(4)
SelfIlluminating = BIT(5)
NeverEnvMap = BIT(6)
NoMipMap = BIT(7)
MipMap_ZeroBorder = BIT(8)
AuxiliaryMap = BIT(27) | BIT(28) | BIT(29) | BIT(30) | BIT(31)

Private Types

typedef MaterialList Parent 

Private Attributes

Vector< U32 > mBumpMaps 
Vector< U32 > mDetailMaps 
Vector< F32 > mDetailScales 
Vector< U32 > mFlags 
bool mNamesTransformed 
Vector< U32 > mReflectanceMaps 
Vector< F32 > mReflectionAmounts 

Private Functions

allocate(U32 sz)

Public Functions

TSMaterialList()

TSMaterialList(const TSMaterialList * )

TSMaterialList(U32 materialCount, const char ** materialNames, const U32 * materialFlags, const U32 * reflectanceMaps, const U32 * bumpMaps, const U32 * detailMaps, const F32 * detailScales, const F32 * reflectionAmounts)

~TSMaterialList()

free()

Reimplemented from: MaterialList

getFlags(U32 index)

push_back(const char * name, U32 flags, Material * mat)

push_back(const String & name, U32 flags, U32 a, U32 b, U32 c, F32 dm, F32 em)

pre-load only

renameMaterial(U32 index, const String & newName)

setFlags(U32 index, U32 value)

Protected Functions

mapMaterial(U32 index)

Reimplemented from: MaterialList