HatchitGame
ht_renderer_singleton.h
1 
15 #pragma once
16 
17 #include <ht_platform.h>
18 #include <ht_singleton.h>
19 #include <ht_renderer.h>
20 
21 namespace Hatchit {
22 
23  namespace Game {
24 
25  class HT_API Renderer : public Core::Singleton<Renderer>
26  {
27  public:
28 
29  static bool Initialize(const Graphics::RendererParams& params);
30 
31  static void DeInitialize();
32 
33  static void Render();
34 
35  static void Present();
36 
37  static void ResizeBuffers(uint32_t width, uint32_t height);
38 
39  static Graphics::RendererType GetRendererType();
40 
41  static Graphics::Renderer* GetRenderer();
42 
43  private:
44  Graphics::Renderer* m_renderer;
45  Graphics::RendererType m_rendererType;
46  bool m_initialized;
47  };
48 
49  }
50 
51 }
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_glfwkeyboard.h:21
Definition: ht_renderer_singleton.h:25