doom3-gpl
Doom 3 GPL source release
|
Represents a single attribute in a material. More...
#include <MaterialDef.h>
Public Types | |
enum | { MATERIAL_DEF_TYPE_GROUP, MATERIAL_DEF_TYPE_BOOL, MATERIAL_DEF_TYPE_STRING, MATERIAL_DEF_TYPE_FLOAT, MATERIAL_DEF_TYPE_INT } |
Defines possible attribute types. More... | |
Public Member Functions | |
MaterialDef (void) | |
Constructor. More... | |
virtual | ~MaterialDef (void) |
Destructor. More... | |
DWORD | GetViewData (const char *viewName) |
Returns view specific data associated with the material definition. More... | |
void | SetViewData (const char *viewName, DWORD value) |
Sets view specific data for the material definition. More... | |
Public Attributes | |
int | type |
idStr | dictName |
idStr | displayName |
idStr | displayInfo |
bool | quotes |
idHashTable< DWORD > | viewData |
Represents a single attribute in a material.
Represents material, stage and special stage attributes. The MaterialDef manager loads these definitions from the material definition file as the editor is being initialized.
Definition at line 36 of file MaterialDef.h.
anonymous enum |
Defines possible attribute types.
Enumerator | |
---|---|
MATERIAL_DEF_TYPE_GROUP | |
MATERIAL_DEF_TYPE_BOOL | |
MATERIAL_DEF_TYPE_STRING | |
MATERIAL_DEF_TYPE_FLOAT | |
MATERIAL_DEF_TYPE_INT |
Definition at line 42 of file MaterialDef.h.
MaterialDef::MaterialDef | ( | void | ) |
Constructor.
Definition at line 37 of file MaterialDef.cpp.
|
virtual |
Destructor.
Definition at line 45 of file MaterialDef.cpp.
Returns view specific data associated with the material definition.
Definition at line 51 of file MaterialDef.cpp.
Sets view specific data for the material definition.
Definition at line 60 of file MaterialDef.cpp.
idStr MaterialDef::dictName |
Definition at line 51 of file MaterialDef.h.
idStr MaterialDef::displayInfo |
Definition at line 53 of file MaterialDef.h.
idStr MaterialDef::displayName |
Definition at line 52 of file MaterialDef.h.
bool MaterialDef::quotes |
Definition at line 54 of file MaterialDef.h.
int MaterialDef::type |
Definition at line 50 of file MaterialDef.h.
idHashTable<DWORD> MaterialDef::viewData |
Definition at line 55 of file MaterialDef.h.