doom3-gpl
Doom 3 GPL source release
|
This class contains static utility functions that view and MaterialDoc use to access the MaterialDef and MaterialDefList data that is loaded. More...
#include <MaterialDef.h>
Public Types | |
enum | { MATERIAL_DEF_MATERIAL = 0, MATERIAL_DEF_STAGE, MATERIAL_DEF_SPECIAL_STAGE, MATERIAL_DEF_NUM } |
Defines the groupings of material attributes. More... | |
Static Public Member Functions | |
static void | InitializeMaterialDefLists () |
Loads the material definition file instatiates MaterialDef objects for each definition and groups the definitions. More... | |
static void | InitializeMaterialDefList (idLexer *src, const char *typeName, MaterialDefList *list) |
Loads a single type of material attributes and adds them to the supplied MaterialDefList object. More... | |
static void | DestroyMaterialDefLists () |
Destroys all MaterialDef instances and clears the material attribute grouping lists. More... | |
static MaterialDefList * | GetMaterialDefs (int type) |
Returns the MaterialDefList for the specified attribute grouping. More... | |
Static Protected Attributes | |
static MaterialDefList | materialDefs [MATERIAL_DEF_NUM] |
This class contains static utility functions that view and MaterialDoc use to access the MaterialDef and MaterialDefList data that is loaded.
This class is also responsible for loading and destroying the MaterialDef instances.
Definition at line 78 of file MaterialDef.h.
anonymous enum |
Defines the groupings of material attributes.
Enumerator | |
---|---|
MATERIAL_DEF_MATERIAL | |
MATERIAL_DEF_STAGE | |
MATERIAL_DEF_SPECIAL_STAGE | |
MATERIAL_DEF_NUM |
Definition at line 85 of file MaterialDef.h.
|
static |
Destroys all MaterialDef instances and clears the material attribute grouping lists.
Definition at line 180 of file MaterialDef.cpp.
|
static |
Returns the MaterialDefList for the specified attribute grouping.
type | The attribute grouping for which to retreive the attribute list. |
Definition at line 194 of file MaterialDef.cpp.
|
static |
Loads a single type of material attributes and adds them to the supplied MaterialDefList object.
src | The idLexer object that contains the file. |
typeName | The name of the attribute grouping to search for in the file. |
list | The MaterialDefList object to append the MaterialDef instances to. |
Definition at line 103 of file MaterialDef.cpp.
|
static |
Loads the material definition file instatiates MaterialDef objects for each definition and groups the definitions.
Definition at line 73 of file MaterialDef.cpp.
|
staticprotected |
Definition at line 101 of file MaterialDef.h.