00001 #include "InitializeInterface.h" 00002 00003 namespace RenderTools { 00004 00005 InitializeInterface::InitializeInterface( void ): 00006 m_initialized( false ){ 00007 00008 } 00009 00010 void InitializeInterface::initialize( bool force ){ 00011 if( ! m_initialized || force ){ 00012 onInitialize(); 00013 m_initialized = true; 00014 } 00015 } 00016 00017 void InitializeInterface::setInitialized( bool state ){ 00018 m_initialized = state; 00019 } 00020 00021 bool InitializeInterface::isInitialized( void ) const { 00022 return( m_initialized ); 00023 } 00024 00025 };//namespace RenderTools