2017-10-04 11:20:27 +02:00
|
|
|
#include "externals.hh"
|
|
|
|
#include "globals.hh"
|
|
|
|
|
|
|
|
#include "filewatcher.hh"
|
2017-11-15 23:09:52 +01:00
|
|
|
#include "odbg.hh"
|
|
|
|
#include "opcomp.hh"
|
|
|
|
#include "ops.hh"
|
2017-10-04 11:20:27 +02:00
|
|
|
#include "profiling.hh"
|
|
|
|
#include "shaders.hh"
|
2017-10-30 18:29:52 +01:00
|
|
|
#include "sync.hh"
|
2017-11-15 23:09:52 +01:00
|
|
|
#include "texture.hh"
|
|
|
|
#include "window.hh"
|
2017-10-04 11:20:27 +02:00
|
|
|
|
|
|
|
|
2017-11-03 09:08:19 +01:00
|
|
|
T_OwnPtr< T_FilesWatcher > Globals::watcher_;
|
|
|
|
T_OwnPtr< T_Window > Globals::window_;
|
|
|
|
T_OwnPtr< T_Profiler > Globals::profiler_;
|
|
|
|
T_OwnPtr< T_SyncManager > Globals::sync_;
|
|
|
|
T_OwnPtr< T_TextureManager > Globals::textures_;
|
|
|
|
T_OwnPtr< T_ShaderManager > Globals::shaders_;
|
|
|
|
T_OwnPtr< T_OutputDebugger > Globals::odbg_;
|
2017-11-15 23:09:52 +01:00
|
|
|
T_OwnPtr< T_ScriptManager > Globals::ops_;
|
2017-10-04 11:20:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
void Globals::Init( )
|
|
|
|
{
|
2017-11-03 09:08:19 +01:00
|
|
|
watcher_ = NewOwned< T_FilesWatcher >( );
|
|
|
|
window_ = NewOwned< T_Window >( );
|
|
|
|
profiler_ = NewOwned< T_Profiler >( );
|
|
|
|
sync_ = NewOwned< T_SyncManager >( );
|
|
|
|
textures_ = NewOwned< T_TextureManager >( );
|
|
|
|
shaders_ = NewOwned< T_ShaderManager >( );
|
|
|
|
odbg_ = NewOwned< T_OutputDebugger >( );
|
2017-11-15 23:09:52 +01:00
|
|
|
ops_ = NewOwned< T_ScriptManager >( );
|
2017-10-04 11:20:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void Globals::Shutdown( )
|
|
|
|
{
|
2017-11-15 23:09:52 +01:00
|
|
|
ops_.clear( );
|
2017-11-03 09:08:19 +01:00
|
|
|
odbg_.clear( );
|
|
|
|
shaders_.clear( );
|
|
|
|
textures_.clear( );
|
2017-11-04 21:23:50 +01:00
|
|
|
sync_.clear( );
|
2017-11-03 09:08:19 +01:00
|
|
|
profiler_.clear( );
|
|
|
|
window_.clear( );
|
|
|
|
watcher_.clear( );
|
2017-10-04 11:20:27 +02:00
|
|
|
}
|