HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GR_MaterialGroups Class Reference

A class that manages material assignments to different groups of primitives. More...

#include <GR_MaterialGroups.h>

Public Member Functions

 GR_MaterialGroups ()
 
 ~GR_MaterialGroups ()
 
int getNumGroups () const
 
bool isGroupVisible (int i) const
 
RE_MaterialPtr getGroupMaterial (int group_index, const RE_MaterialAtlas &atlas, int default_material=-1) const
 
int getGroupMaterialID (int group_index) const
 
int getGroupUnmappedID (int group_index) const
 
void resetGroups ()
 
void appendGroup (int mat_id)
 
void setNumGroups (int num)
 
void setGroupVisibility (int group_index, bool visible)
 
void setAllGroupsVisible (bool visible=true)
 
void setGroupMaterial (int group_index, int mat_id)
 
void updateMaterialRemap (const GT_PrimitiveHandle &for_prim)
 

Detailed Description

A class that manages material assignments to different groups of primitives.

Definition at line 24 of file GR_MaterialGroups.h.

Constructor & Destructor Documentation

GR_MaterialGroups::GR_MaterialGroups ( )
GR_MaterialGroups::~GR_MaterialGroups ( )

Member Function Documentation

void GR_MaterialGroups::appendGroup ( int  mat_id)
inline

Definition at line 42 of file GR_MaterialGroups.h.

RE_MaterialPtr GR_MaterialGroups::getGroupMaterial ( int  group_index,
const RE_MaterialAtlas atlas,
int  default_material = -1 
) const
int GR_MaterialGroups::getGroupMaterialID ( int  group_index) const
int GR_MaterialGroups::getGroupUnmappedID ( int  group_index) const
inline

Definition at line 38 of file GR_MaterialGroups.h.

int GR_MaterialGroups::getNumGroups ( ) const
inline

Definition at line 30 of file GR_MaterialGroups.h.

bool GR_MaterialGroups::isGroupVisible ( int  i) const
inline

Definition at line 31 of file GR_MaterialGroups.h.

void GR_MaterialGroups::resetGroups ( )
inline

Definition at line 41 of file GR_MaterialGroups.h.

void GR_MaterialGroups::setAllGroupsVisible ( bool  visible = true)
void GR_MaterialGroups::setGroupMaterial ( int  group_index,
int  mat_id 
)
inline

Definition at line 51 of file GR_MaterialGroups.h.

void GR_MaterialGroups::setGroupVisibility ( int  group_index,
bool  visible 
)
inline

Definition at line 47 of file GR_MaterialGroups.h.

void GR_MaterialGroups::setNumGroups ( int  num)
inline

Definition at line 45 of file GR_MaterialGroups.h.

void GR_MaterialGroups::updateMaterialRemap ( const GT_PrimitiveHandle for_prim)

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