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
Public Member Functions | Static Public Member Functions | Private Attributes
glPortal::GameRenderer Class Reference

#include <include/glPortal/renderer/GameRenderer.hpp>

Inherits radix::SubRenderer.

Public Member Functions

 GameRenderer (World &w, radix::Renderer &ren, radix::Camera *cam, double *ptime)
 
void render ()
 
void renderScene (radix::RenderContext &rc)
 Renders the scene with provided camera parameters. More...
 
void renderViewFrames (radix::RenderContext &rc)
 
void renderViewFrameStencil (radix::RenderContext &rc)
 
void renderEntities (radix::RenderContext &rc)
 Renders all the entities in the scene regardless of shading. More...
 
void renderEntity (radix::RenderContext &rc, const radix::Entity &e)
 Renders a single entity regardless of shading. More...
 
void renderPlayer (radix::RenderContext &rc)
 Renders the player character using ambient shading. More...
 
- Public Member Functions inherited from radix::SubRenderer
 SubRenderer (World &w, Renderer &ren)
 

Static Public Member Functions

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. More...
 

Private Attributes

radix::Cameracamera
 
double * dtime
 
double time
 

Additional Inherited Members

- Protected Member Functions inherited from radix::SubRenderer
void initCamera ()
 
- Protected Attributes inherited from radix::SubRenderer
Worldworld
 
Rendererrenderer
 
std::unique_ptr< Cameracamera
 
std::unique_ptr< RenderContextrenderContext
 
int viewportWidth
 
int viewportHeight
 

Constructor & Destructor Documentation

glPortal::GameRenderer::GameRenderer ( World w,
radix::Renderer ren,
radix::Camera cam,
double *  ptime 
)

Member Function Documentation

void glPortal::GameRenderer::render ( )
virtual

Implements radix::SubRenderer.

void glPortal::GameRenderer::renderEntities ( radix::RenderContext rc)

Renders all the entities in the scene regardless of shading.

void glPortal::GameRenderer::renderEntity ( radix::RenderContext rc,
const radix::Entity e 
)

Renders a single entity regardless of shading.

void glPortal::GameRenderer::renderPlayer ( radix::RenderContext rc)

Renders the player character using ambient shading.

void glPortal::GameRenderer::renderScene ( radix::RenderContext rc)

Renders the scene with provided camera parameters.

void glPortal::GameRenderer::renderViewFrames ( radix::RenderContext rc)
void glPortal::GameRenderer::renderViewFrameStencil ( radix::RenderContext rc)
static void glPortal::GameRenderer::setCameraInPortal ( const radix::Camera cam,
radix::Camera dest,
const radix::Entity portal,
const radix::Entity otherPortal 
)
static

Set the camera in the portal so rendering from that portal is possible.

Parameters
camThe camera from which we look at the portal
destThe camera to move inside the portal and point in the right direction
portalThe portal in which to place the camera
otherPortalThe counterpart of the portal

Field Documentation

radix::Camera* glPortal::GameRenderer::camera
private
double* glPortal::GameRenderer::dtime
private
double glPortal::GameRenderer::time
private

The documentation for this class was generated from the following file: