Ned's Turkey Farm
A Simple 2.5D Side Scroller
Loading...
Searching...
No Matches
CRenderer Class Reference

The game renderer. More...

#include <Renderer.h>

Inheritance diagram for CRenderer:
Collaboration diagram for CRenderer:

Public Member Functions

 CRenderer ()
 Constructor.
 
const float GetCameraYaw () const
 Get camera yaw.
 
void SetCameraYaw (float)
 Set camera yaw.
 
const Vector3 & GetCameraPos () const
 Get camera position.
 
void SetCameraPos (const Vector3 &)
 Set camera position.
 
const bool IsFollowCamera () const
 Test if follow camera.
 
void SetFollowCamera (bool=true)
 Set/unset follow camera.
 

Private Attributes

bool m_bFollowCamera = true
 Whether to use a follow camera.
 

Detailed Description

Handle the game-specific rendering tasks, relying on the base class to do all of the actual API-specific rendering.

Constructor & Destructor Documentation

◆ CRenderer()

CRenderer::CRenderer ( )

Make an unbatched 3D sprite renderer.

Member Function Documentation

◆ GetCameraPos()

const Vector3 & CRenderer::GetCameraPos ( ) const

Reader function for camera position.

Returns
Camera position.
Here is the caller graph for this function:

◆ GetCameraYaw()

const float CRenderer::GetCameraYaw ( ) const

Reader function for camera yaw.

Returns
Camera yaw value.
Here is the caller graph for this function:

◆ IsFollowCamera()

const bool CRenderer::IsFollowCamera ( ) const

Reader function for toggle camera status.

Returns
true if camera is a follow camera.
Here is the caller graph for this function:

◆ SetCameraPos()

void CRenderer::SetCameraPos ( const Vector3 & pos)

Writer function for camera position.

Parameters
posNew camera position.
Here is the caller graph for this function:

◆ SetCameraYaw()

void CRenderer::SetCameraYaw ( float a)

Writer function for camera yaw.

Parameters
aNew camera yaw value.
Here is the caller graph for this function:

◆ SetFollowCamera()

void CRenderer::SetFollowCamera ( bool b = true)

Toggle follow camera status.

Parameters
btrue if camera is to become a follow camera.
Here is the caller graph for this function: