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

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< DWORDviewData
 

Detailed Description

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.

Member Enumeration Documentation

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.

Constructor & Destructor Documentation

MaterialDef::MaterialDef ( void  )

Constructor.

Definition at line 37 of file MaterialDef.cpp.

MaterialDef::~MaterialDef ( void  )
virtual

Destructor.

Definition at line 45 of file MaterialDef.cpp.

Member Function Documentation

DWORD MaterialDef::GetViewData ( const char *  viewName)

Returns view specific data associated with the material definition.

Definition at line 51 of file MaterialDef.cpp.

void MaterialDef::SetViewData ( const char *  viewName,
DWORD  value 
)

Sets view specific data for the material definition.

Definition at line 60 of file MaterialDef.cpp.

Member Data Documentation

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.


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