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
GameRenderer.hpp
Go to the documentation of this file.
1 #ifndef GAMERENDERER_HPP
2 #define GAMERENDERER_HPP
3 
4 #include <memory>
5 #include <string>
6 
9 
10 namespace radix {
11  struct RenderContext;
12  class Camera;
13  class Renderer;
14  class Entity;
15 }
16 
17 namespace glPortal {
18 
19 class World;
20 
22 public:
23  GameRenderer(World& w, radix::Renderer& ren, radix::Camera* cam, double* ptime);
24 
25  void render();
26 
31 
34 
39 
44 
49 
57  static void setCameraInPortal(const radix::Camera &cam, radix::Camera &dest,
58  const radix::Entity &portal, const radix::Entity &otherPortal);
59 
60 private:
62  double* dtime;
63  double time;
64 };
65 
66 } /* namespace glPortal */
67 
68 #endif /* GAMERENDERER_HPP */
Definition: GameController.hpp:7
double time
Definition: GameRenderer.hpp:63
ECS entity, Component container It is created like this:
Definition: Entity.hpp:23
Definition: SubRenderer.hpp:14
void renderEntity(radix::RenderContext &rc, const radix::Entity &e)
Renders a single entity regardless of shading.
Definition: Screen.hpp:10
void renderViewFrames(radix::RenderContext &rc)
static void setCameraInPortal(const radix::Camera &cam, radix::Camera &dest, const radix::Entity &portal, const radix::Entity &otherPortal)
Set the camera in the portal so rendering from that portal is possible.
Definition: Camera.hpp:11
Definition: World.hpp:11
GameRenderer(World &w, radix::Renderer &ren, radix::Camera *cam, double *ptime)
Definition: RenderContext.hpp:15
void renderViewFrameStencil(radix::RenderContext &rc)
double * dtime
Definition: GameRenderer.hpp:62
radix::Camera * camera
Definition: GameRenderer.hpp:61
Main renderer - handles sub-renderers and provides low level render functions.
Definition: Renderer.hpp:35
void renderScene(radix::RenderContext &rc)
Renders the scene with provided camera parameters.
Definition: GameRenderer.hpp:21
void renderPlayer(radix::RenderContext &rc)
Renders the player character using ambient shading.
void renderEntities(radix::RenderContext &rc)
Renders all the entities in the scene regardless of shading.