GlPortal Class Reference
0.1.1
Source code documentation of the free and open 3D action puzzle game.
|
#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::Camera * | camera |
double * | dtime |
double | time |
Additional Inherited Members | |
Protected Member Functions inherited from radix::SubRenderer | |
void | initCamera () |
Protected Attributes inherited from radix::SubRenderer | |
World & | world |
Renderer & | renderer |
std::unique_ptr< Camera > | camera |
std::unique_ptr< RenderContext > | renderContext |
int | viewportWidth |
int | viewportHeight |
glPortal::GameRenderer::GameRenderer | ( | World & | w, |
radix::Renderer & | ren, | ||
radix::Camera * | cam, | ||
double * | ptime | ||
) |
|
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 |
Set the camera in the portal so rendering from that portal is possible.
cam | The camera from which we look at the portal |
dest | The camera to move inside the portal and point in the right direction |
portal | The portal in which to place the camera |
otherPortal | The counterpart of the portal |
|
private |
|
private |
|
private |