GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SubRenderer.hpp
Go to the documentation of this file.
1 #ifndef RADIX_SUB_RENDERER_HPP
2 #define RADIX_SUB_RENDERER_HPP
3 
4 #include <memory>
5 
6 #include <radix/Camera.hpp>
8 
9 namespace radix {
10 
11 class World;
12 class Renderer;
13 
14 class SubRenderer {
15 public:
16  SubRenderer(World &w, Renderer& ren);
17 
18  virtual void render() = 0;
19 protected:
20  void initCamera();
21 
24 
25  std::unique_ptr<Camera> camera;
26  std::unique_ptr<RenderContext> renderContext;
27 
29 };
30 
31 } /* namespace radix */
32 
33 #endif /* RADIX_SUB_RENDERER_HPP */
Definition: GameController.hpp:7
int viewportHeight
Definition: SubRenderer.hpp:28
Definition: SubRenderer.hpp:14
virtual void render()=0
std::unique_ptr< RenderContext > renderContext
Definition: SubRenderer.hpp:26
void initCamera()
Definition: SubRenderer.cpp:12
Renderer & renderer
Definition: SubRenderer.hpp:23
int viewportWidth
Definition: SubRenderer.hpp:28
World & world
Definition: SubRenderer.hpp:22
Definition: World.hpp:32
Main renderer - handles sub-renderers and provides low level render functions.
Definition: Renderer.hpp:35
std::unique_ptr< Camera > camera
Definition: SubRenderer.hpp:25
SubRenderer(World &w, Renderer &ren)
Definition: SubRenderer.cpp:5