2017-10-04 11:20:27 +02:00
|
|
|
#pragma once
|
|
|
|
#ifndef REAL_BUILD
|
|
|
|
# include "externals.hh"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
struct T_Window;
|
|
|
|
struct T_FilesWatcher;
|
|
|
|
struct T_Profiler;
|
|
|
|
struct T_TextureManager;
|
|
|
|
struct T_ShaderManager;
|
2017-10-06 14:29:01 +02:00
|
|
|
struct T_OutputDebugger;
|
2017-10-30 18:29:52 +01:00
|
|
|
struct T_SyncManager;
|
2017-10-04 11:20:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
struct Globals
|
|
|
|
{
|
|
|
|
static void Init( );
|
|
|
|
static void Shutdown( );
|
|
|
|
|
|
|
|
static T_FilesWatcher& Watcher( ) { return *watcher_; }
|
|
|
|
static T_Window& Window( ) { return *window_; }
|
|
|
|
static T_Profiler& Profiler( ) { return *profiler_; }
|
2017-10-30 18:29:52 +01:00
|
|
|
static T_SyncManager& Sync( ) { return *sync_; }
|
2017-10-04 11:20:27 +02:00
|
|
|
static T_TextureManager& Textures( ) { return *textures_; }
|
|
|
|
static T_ShaderManager& Shaders( ) { return *shaders_; }
|
2017-10-06 14:29:01 +02:00
|
|
|
static T_OutputDebugger& ODbg( ) { return *odbg_; }
|
2017-10-04 11:20:27 +02:00
|
|
|
|
|
|
|
private:
|
2017-11-03 09:08:19 +01:00
|
|
|
static ebcl::T_OwnPtr< T_FilesWatcher > watcher_;
|
|
|
|
static ebcl::T_OwnPtr< T_Window > window_;
|
|
|
|
static ebcl::T_OwnPtr< T_Profiler > profiler_;
|
|
|
|
static ebcl::T_OwnPtr< T_SyncManager > sync_;
|
|
|
|
static ebcl::T_OwnPtr< T_ShaderManager > shaders_;
|
|
|
|
static ebcl::T_OwnPtr< T_TextureManager > textures_;
|
|
|
|
static ebcl::T_OwnPtr< T_OutputDebugger > odbg_;
|
2017-10-04 11:20:27 +02:00
|
|
|
};
|