Box2D Cannon Game with Stars
Chapter 8 of Ian Parberry's "Introduction to Game Physics with Box2D"
 All Classes Files Functions Variables Enumerations Friends Pages
Public Member Functions | List of all members
CRenderWorld Class Reference

The render world. More...

#include <RenderWorld.h>

Inheritance diagram for CRenderWorld:

Public Member Functions

void DrawWinLoseMessage (int shots, GameStateType state, int secs)
 Draw win/lose text.
 
void LoadImages ()
 Load images.
 

Detailed Description

The render world.

Render world handles the game-specific rendering tasks, relying on CRenderer to do all of the actual API-specific rendering.

Member Function Documentation

void CRenderWorld::DrawWinLoseMessage ( int  shots,
GameStateType  state,
int  secs 
)

Draw win/lose text.

Tell the player whether they've won or lost by plastering a text banner across the screen.

Parameters
shotsNumber of shots fired.
stateThe game state, which tells whether the player has won or lost.
secsTime to completion, in seconds.
void CRenderWorld::LoadImages ( )

Load images.

Load game images. Gets file list from gamesettings.xml.