ShishGL  1.0
A simple modular cross-platform graphics library
RenderSystem.hpp
Go to the documentation of this file.
1 /*============================================================================*/
2 #ifndef SHISHGL_RENDER_SYSTEM_HPP
3 #define SHISHGL_RENDER_SYSTEM_HPP
4 /*============================================================================*/
5 #include "IPlatform.hpp"
6 /*============================================================================*/
7 namespace Sh {
8 
9  class RenderSystem {
10  public:
11 
12  static bool init(int* argc_ptr, char* argv[]);
13 
14  static bool terminate();
15 
16  static bool isInitialized();
17 
18  static IPlatform& Platform();
19 
20  private:
21 
22  static bool is_initialized;
23 
24  static IPlatform* active_platform;
25 
26  };
27 
29 
30 }
31 /*============================================================================*/
32 #endif //SHISHGL_RENDER_SYSTEM_HPP
33 /*============================================================================*/
Sh::RenderSystem
Definition: RenderSystem.hpp:9
Sh::RenderSystem::terminate
static bool terminate()
Definition: RenderSystem.cpp:67
Sh::PLATFORM
IPlatform & PLATFORM()
Definition: RenderSystem.cpp:32
Sh::RenderSystem::isInitialized
static bool isInitialized()
Definition: RenderSystem.cpp:38
Sh
Definition: CoreApplication.hpp:10
Sh::IPlatform
Definition: IPlatform.hpp:13
Sh::RenderSystem::Platform
static IPlatform & Platform()
Definition: RenderSystem.cpp:21
IPlatform.hpp
Sh::RenderSystem::init
static bool init(int *argc_ptr, char *argv[])
Definition: RenderSystem.cpp:44