Boolean _setupClockDriver_unix(ClockDriver* self) { if((self->type == SYSTEM_CLOCK_TYPE) && (_instanceCount > 0)) { WARNING(THIS_COMPONENT"Only one instance of the system clock driver is allowed\n"); return FALSE; } INIT_INTERFACE(self); INIT_DATA_CLOCKDRIVER(self, linuxphc); INIT_CONFIG_CLOCKDRIVER(self, linuxphc); _instanceCount++; self->_instanceCount = &_instanceCount; self->systemClock = TRUE; resetIntPermanentAdev(&self->_adev); getTimeMonotonic(self, &self->_initTime); strncpy(self->name, SYSTEM_CLOCK_NAME, CLOCKDRIVER_NAME_MAX); INFO(THIS_COMPONENT"Started Unix clock driver %s\n", self->name); return TRUE; }
void CRenderInterfaces::Init( void ) { ev::EventSystemInit(); INIT_INTERFACE( CMatrixStack, MVStack ); INIT_INTERFACE( CMatrixStack, ProjStack ); INIT_INTERFACE( CGLStateSaver, GLStateSaver ); INIT_INTERFACE( CTextureManager, TextureManager ); INIT_INTERFACE( CRenderer, Renderer ); INIT_INTERFACE( CFontManager, FontManager ); INIT_INTERFACE( CShaderManager, ShaderManager ); INIT_INTERFACE( CGeometryManager, GeometryManager ); INIT_INTERFACE( CRealtimeDebugInterface, RealtimeDebug ); m_pRealtimeDebugInterface = m_pRealtimeDebug; m_pRendererInterf = m_pRenderer; m_pFontManagerInterf = m_pFontManager; m_pTextureManagerInterf = m_pTextureManager; }
void CAppInterfaces::Init( void ) { INIT_INTERFACE( CButtonInputMgr, ButtonInputMgr ); }