################
HMaterialLibrary
################

.. cpp:namespace:: HMaterialLibrary

.. default-domain:: cpp

Types
=====

=== =================================================
..  :cpp:enumerator:`~HMaterialLibrary::Read_Flags`  
..  :cpp:enumerator:`~HMaterialLibrary::Write_Flags` 
=== =================================================

Fields
======

=== =========================================================
..  :cpp:enum:`~HMaterialLibrary::Read_Flags_Default`        
..  :cpp:enum:`~HMaterialLibrary::Prefer_Embedded`           
..  :cpp:enum:`~HMaterialLibrary::Prefer_Highest_Resolution` 
..  :cpp:enum:`~HMaterialLibrary::Write_Flags_Default`       
..  :cpp:enum:`~HMaterialLibrary::Embedded`                  
=== =========================================================

Functions
=========

================================================= ==========================================================================================================================================================
..                                                :cpp:func:`HMaterialLibrary <HMaterialLibrary::HMaterialLibrary>`                                                                                         
..                                                :cpp:func:`~HMaterialLibrary <virtual HMaterialLibrary::~HMaterialLibrary>`                                                                               
bool                                              :cpp:func:`RegisterMaterials <bool HMaterialLibrary::RegisterMaterials(const char *directory)>`                                                           
bool                                              :cpp:func:`RegisterMaterials <bool HMaterialLibrary::RegisterMaterials(const wchar_t *directory)>`                                                        
bool                                              :cpp:func:`IsValid <bool HMaterialLibrary::IsValid() const>`                                                                                              
bool                                              :cpp:func:`ApplyStyles <bool HMaterialLibrary::ApplyStyles()>`                                                                                            
const char *                                      :cpp:func:`GetContainerSegment <const char * HMaterialLibrary::GetContainerSegment() const>`                                                              
const char *                                      :cpp:func:`GetMaterialList <const char * HMaterialLibrary::GetMaterialList(char *buffer=0, int buffer_length=-1)>`                                        
bool                                              :cpp:func:`IsValidMaterial <bool HMaterialLibrary::IsValidMaterial(const char *name) const>`                                                              
bool                                              :cpp:func:`ApplyMaterial <bool HMaterialLibrary::ApplyMaterial(const char *name)>`                                                                        
bool                                              :cpp:func:`ReloadMaterial <bool HMaterialLibrary::ReloadMaterial(const char *name)>`                                                                      
bool                                              :cpp:func:`CloneMaterial <bool HMaterialLibrary::CloneMaterial(const char *old_material_name, char *new_material_name)>`                                  
bool                                              :cpp:func:`RenameMaterial <bool HMaterialLibrary::RenameMaterial(const char *old_material_name, const char *new_material_name)>`                          
bool                                              :cpp:func:`GetTweakablesCount <bool HMaterialLibrary::GetTweakablesCount(const char *material_name, int *count)>`                                         
bool                                              :cpp:func:`GetTweakableByIndex <bool HMaterialLibrary::GetTweakableByIndex(const char *material_name, int index, char *tweakable_name, char *type)>`      
bool                                              :cpp:func:`GetTweakableByName <bool HMaterialLibrary::GetTweakableByName(const char *material_name, char const *tweakable_name, int *index, char *type)>` 
int                                               :cpp:func:`CountFromType <int HMaterialLibrary::CountFromType(const char *type)>`                                                                         
bool                                              :cpp:func:`GetTweakableDefaults <bool HMaterialLibrary::GetTweakableDefaults(const char *material_name, int index, float *vals)>`                         
bool                                              :cpp:func:`Tweak <bool HMaterialLibrary::Tweak(const char *material_name, int index, const float *vals)>`                                                 
bool                                              :cpp:func:`Tweak <bool HMaterialLibrary::Tweak(const char *material_name, int index, float val0, float val1=0, float val2=0, float val3=0)>`              
const char *                                      :cpp:func:`GetEnvironmentList <const char * HMaterialLibrary::GetEnvironmentList(char *buffer=0, int buffer_length=-1)>`                                  
bool                                              :cpp:func:`IsValidEnvironment <bool HMaterialLibrary::IsValidEnvironment(const char *name) const>`                                                        
bool                                              :cpp:func:`SetEnvironment <bool HMaterialLibrary::SetEnvironment(const char *name)>`                                                                      
bool                                              :cpp:func:`EnsureMaterialInitialized <bool HMaterialLibrary::EnsureMaterialInitialized(const char *name)>`                                                
bool                                              :cpp:func:`EnsureEnvironmentInitialized <bool HMaterialLibrary::EnsureEnvironmentInitialized(const char *name)>`                                          
bool                                              :cpp:func:`FindReferencedMaterials <bool HMaterialLibrary::FindReferencedMaterials(HC_KEY segment_tree, char *list, int list_size)>`                      
bool                                              :cpp:func:`InitWrite <bool HMaterialLibrary::InitWrite(const char *list, int *size)>`                                                                     
bool                                              :cpp:func:`InitRead <bool HMaterialLibrary::InitRead(int version)>`                                                                                       
TK_Status                                         :cpp:func:`ParseBuffer <TK_Status HMaterialLibrary::ParseBuffer(char const *buffer, int size)>`                                                           
const char *                                      :cpp:func:`GetCurrentEnvironment <const char * HMaterialLibrary::GetCurrentEnvironment(char *buffer=0, int buffer_length=-1)>`                            
bool                                              :cpp:func:`Compile <bool HMaterialLibrary::Compile(const char *name)>`                                                                                    
void                                              :cpp:func:`SetReadFlags <void HMaterialLibrary::SetReadFlags(Read_Flags flags)>`                                                                          
:cpp:enumerator:`~HMaterialLibrary::Read_Flags`   :cpp:func:`GetReadFlags <Read_Flags HMaterialLibrary::GetReadFlags()>`                                                                                    
void                                              :cpp:func:`SetWriteFlags <void HMaterialLibrary::SetWriteFlags(Write_Flags flags)>`                                                                       
:cpp:enumerator:`~HMaterialLibrary::Write_Flags`  :cpp:func:`GetWriteFlags <Write_Flags HMaterialLibrary::GetWriteFlags()>`                                                                                 
================================================= ==========================================================================================================================================================

.. cpp:namespace:: nullptr

Detailed Description
====================

.. doxygenclass:: HMaterialLibrary
   :project: mvo
   :members:
   :undoc-members:



