doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Static Public Member Functions | Static Protected Attributes | List of all members
MaterialDefManager Class Reference

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 MaterialDefListGetMaterialDefs (int type)
 Returns the MaterialDefList for the specified attribute grouping. More...
 

Static Protected Attributes

static MaterialDefList materialDefs [MATERIAL_DEF_NUM]
 

Detailed Description

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.

Member Enumeration Documentation

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.

Member Function Documentation

void MaterialDefManager::DestroyMaterialDefLists ( )
static

Destroys all MaterialDef instances and clears the material attribute grouping lists.

Definition at line 180 of file MaterialDef.cpp.

MaterialDefList * MaterialDefManager::GetMaterialDefs ( int  type)
static

Returns the MaterialDefList for the specified attribute grouping.

Parameters
typeThe attribute grouping for which to retreive the attribute list.

Definition at line 194 of file MaterialDef.cpp.

void MaterialDefManager::InitializeMaterialDefList ( idLexer src,
const char *  typeName,
MaterialDefList list 
)
static

Loads a single type of material attributes and adds them to the supplied MaterialDefList object.

Parameters
srcThe idLexer object that contains the file.
typeNameThe name of the attribute grouping to search for in the file.
listThe MaterialDefList object to append the MaterialDef instances to.

Definition at line 103 of file MaterialDef.cpp.

void MaterialDefManager::InitializeMaterialDefLists ( )
static

Loads the material definition file instatiates MaterialDef objects for each definition and groups the definitions.

Definition at line 73 of file MaterialDef.cpp.

Member Data Documentation

MaterialDefList MaterialDefManager::materialDefs
staticprotected

Definition at line 101 of file MaterialDef.h.


The documentation for this class was generated from the following files: