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)

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

Definition at line 38 of file GR_MaterialGroups.h.

int GR_MaterialGroups::getNumGroups ( ) const

Definition at line 30 of file GR_MaterialGroups.h.

bool GR_MaterialGroups::isGroupVisible ( int  i) const

Definition at line 31 of file GR_MaterialGroups.h.

void GR_MaterialGroups::resetGroups ( )

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 

Definition at line 51 of file GR_MaterialGroups.h.

void GR_MaterialGroups::setGroupVisibility ( int  group_index,
bool  visible 

Definition at line 47 of file GR_MaterialGroups.h.

void GR_MaterialGroups::setNumGroups ( int  num)

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: