![]() |
Ned's Turkey Farm
A Simple 2.5D Side Scroller
|
The game renderer. More...
#include <Renderer.h>


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. | |
Handle the game-specific rendering tasks, relying on the base class to do all of the actual API-specific rendering.
| CRenderer::CRenderer | ( | ) |
Make an unbatched 3D sprite renderer.
| const Vector3 & CRenderer::GetCameraPos | ( | ) | const |
Reader function for camera position.

| const float CRenderer::GetCameraYaw | ( | ) | const |
Reader function for camera yaw.

| const bool CRenderer::IsFollowCamera | ( | ) | const |
Reader function for toggle camera status.

| void CRenderer::SetCameraPos | ( | const Vector3 & | pos | ) |
Writer function for camera position.
| pos | New camera position. |

| void CRenderer::SetCameraYaw | ( | float | a | ) |
Writer function for camera yaw.
| a | New camera yaw value. |

| void CRenderer::SetFollowCamera | ( | bool | b = true | ) |
Toggle follow camera status.
| b | true if camera is to become a follow camera. |
