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

#include <GR_Material.h>

+ Inheritance diagram for GR_MaterialAtlas:

Public Member Functions

const GR_MaterialPtrgetDefaultMaterial () const
 
const GR_MaterialPtrgetFactoryMaterial () const
 
bool isDirty (fpreal time) const
 
GR_MaterialPtr get (int material_id) const
 
GR_MaterialPtr get (int material_id, const GR_DrawParms &dp) const
 
void add (const GR_MaterialPtr &material)
 
void setDefaultMaterial (const GR_MaterialPtr &material, bool add_list=true)
 
void setFactoryMaterial (const GR_MaterialPtr &material, bool add_list=true)
 
void setAlternateMaterials (GR_MaterialAtlas *atlas)
 
GR_MaterialAtlasalternateMaterials ()
 
const GR_MaterialAtlasalternateMaterials () const
 
bool hasMaterial (int material_id) const
 
- Public Member Functions inherited from UT_Map< int, GR_MaterialPtr >
 UT_Map (const Hasher &hf=Hasher(), const Equal &eql=Equal())
 
 UT_Map (InputIt first, InputIt last, const Hasher &hf=Hasher(), const Equal &eql=Equal())
 
 UT_Map (std::initializer_list< value_type > init_list)
 
int64 getMemoryUsage (bool inclusive) const
 
bool contains (const key_type &key) const
 Returns true if a value with the key is contained in the map. More...
 
GR_MaterialPtr get (const key_type &key, const GR_MaterialPtr &defval) const
 
void clear ()
 
UT_IteratorRange
< const_key_iterator
key_range () const
 
UT_IteratorRange< mapped_iteratormapped_range ()
 
UT_IteratorRange
< const_mapped_iterator
mapped_range () const
 

Additional Inherited Members

- Public Types inherited from UT_Map< int, GR_MaterialPtr >
typedef hboost::unordered_map
< int, GR_MaterialPtr,
hboost::hash< int >
, std::equal_to< int > > 
Base
 
typedef Base::key_type key_type
 
typedef Base::mapped_type mapped_type
 
typedef Base::value_type value_type
 
typedef Base::hasher hasher
 
typedef Base::key_equal key_equal
 
typedef Base::iterator iterator
 
typedef Base::const_iterator const_iterator
 
typedef hboost::hash< intHasher
 
typedef std::equal_to< intEqual
 
using const_key_iterator = partial_iterator_base< const_iterator, const key_type, deref_pair_first< const_iterator, const key_type >>
 
using mapped_iterator = partial_iterator_base< iterator, mapped_type, deref_pair_second< iterator, mapped_type >>
 
using const_mapped_iterator = partial_iterator_base< const_iterator, const mapped_type, deref_pair_second< const_iterator, const mapped_type >>
 

Detailed Description

Definition at line 242 of file GR_Material.h.

Member Function Documentation

void GR_MaterialAtlas::add ( const GR_MaterialPtr material)
inline

Definition at line 289 of file GR_Material.h.

GR_MaterialAtlas* GR_MaterialAtlas::alternateMaterials ( )
inline

Definition at line 306 of file GR_Material.h.

const GR_MaterialAtlas* GR_MaterialAtlas::alternateMaterials ( ) const
inline

Definition at line 307 of file GR_Material.h.

GR_MaterialPtr GR_MaterialAtlas::get ( int  material_id) const
inline

Definition at line 257 of file GR_Material.h.

GR_MaterialPtr GR_MaterialAtlas::get ( int  material_id,
const GR_DrawParms dp 
) const
inline

Definition at line 271 of file GR_Material.h.

const GR_MaterialPtr& GR_MaterialAtlas::getDefaultMaterial ( ) const
inline

Definition at line 246 of file GR_Material.h.

const GR_MaterialPtr& GR_MaterialAtlas::getFactoryMaterial ( ) const
inline

Definition at line 250 of file GR_Material.h.

bool GR_MaterialAtlas::hasMaterial ( int  material_id) const
inline

Definition at line 309 of file GR_Material.h.

bool GR_MaterialAtlas::isDirty ( fpreal  time) const
void GR_MaterialAtlas::setAlternateMaterials ( GR_MaterialAtlas atlas)
inline

Definition at line 304 of file GR_Material.h.

void GR_MaterialAtlas::setDefaultMaterial ( const GR_MaterialPtr material,
bool  add_list = true 
)
inline

Definition at line 294 of file GR_Material.h.

void GR_MaterialAtlas::setFactoryMaterial ( const GR_MaterialPtr material,
bool  add_list = true 
)
inline

Definition at line 299 of file GR_Material.h.


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