51 lines
1.2 KiB
C++
51 lines
1.2 KiB
C++
#include "externals.hh"
|
|
#include "globals.hh"
|
|
|
|
#include "filewatcher.hh"
|
|
#include "odbg.hh"
|
|
#include "opcomp.hh"
|
|
#include "ops.hh"
|
|
#include "profiling.hh"
|
|
#include "shaders.hh"
|
|
#include "sync.hh"
|
|
#include "texture.hh"
|
|
#include "undo.hh"
|
|
#include "window.hh"
|
|
|
|
|
|
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_;
|
|
T_OwnPtr< T_ScriptManager > Globals::ops_;
|
|
T_OwnPtr< T_UndoManager > Globals::undo_;
|
|
|
|
|
|
void Globals::Init( )
|
|
{
|
|
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 >( );
|
|
ops_ = NewOwned< T_ScriptManager >( );
|
|
undo_ = NewOwned< T_UndoManager >( );
|
|
}
|
|
|
|
void Globals::Shutdown( )
|
|
{
|
|
undo_.clear( );
|
|
ops_.clear( );
|
|
odbg_.clear( );
|
|
shaders_.clear( );
|
|
textures_.clear( );
|
|
sync_.clear( );
|
|
profiler_.clear( );
|
|
window_.clear( );
|
|
watcher_.clear( );
|
|
}
|