Game specific defines.
#include "SageDefines.h"
#include "Box2D\Box2D.h"
|
| enum class | eGameState { Loading
, Playing
} |
| | Game state type. More...
|
| |
| enum class | eSprite {
Background
, One
, Zero
, Ledge
,
Ramp
, Block
, Arm
, Leg
,
Leg2
, Ring
, RedLEDOn
, RedLEDOff
,
LED
, Nixie0
, Nixie1
, Line
} |
| | Sprite enumerated type. More...
|
| |
| enum class | eSound {
Overflow
, Bonk
, Squeek
, Ding
,
Zero
, One
} |
| | Sound enumerated type. More...
|
| |
| enum class | eDrawMode { Sprites
, Both
, Lines
, Wrap
} |
| | Draw mode enumerated type. More...
|
| |
|
| float | PW2RW (float x) |
| | Physics World to Render World units for a float. Physics World to Render World units for a float.
|
| |
| Vector2 | PW2RW (const b2Vec2 &v) |
| | Physics World to Render World units for a 2D vector. Physics World to Render World units for a 2D vector.
|
| |
| float | RW2PW (float x) |
| | Render World to Physics World units for a float. Render World to Physics World units for a float.
|
| |
| float | RW2PW (int x) |
| | Render World to Physics World units for an int. Render World to Physics World units for an integer.
|
| |
| b2Vec2 | RW2PW (int x, int y) |
| | Render World to Physics World units for a pair of integers. Render World to Physics World units for a 2D vector provided as a pair of integers.
|
| |
| b2Vec2 | RW2PW (const Vector2 &v) |
| | Physics World to Render World units for a vector.
|
| |
|
|
const float | fPRV = 10.0f |
| | Physics World to Render World rescale value.
|
| |
◆ eDrawMode
An enumerated type for the drawing mode.
◆ eGameState
An enumerated type for the game state.
◆ eSound
An enumerated type for the sounds, which will be cast to an unsigned integer and used for the index of the corresponding sample. Size must be last.
◆ eSprite
An enumerated type for the sprites, which will be cast to an unsigned integer and used for the index of the corresponding texture in graphics memory.
◆ PW2RW() [1/2]
| Vector2 PW2RW |
( |
const b2Vec2 & | v | ) |
|
|
inline |
- Parameters
-
| v | A 2D vector in Physics World units. |
- Returns
- The equivalent vector in Render World units.
◆ PW2RW() [2/2]
- Parameters
-
| x | A floating point value in Physics World units. |
- Returns
- The equivalent value in Render World units.
◆ RW2PW() [1/4]
| b2Vec2 RW2PW |
( |
const Vector2 & | v | ) |
|
|
inline |
- Parameters
-
| v | A 2D vector in Render World units. |
- Returns
- The equivalent vector in Physics World units.
◆ RW2PW() [2/4]
- Parameters
-
| x | A floating point value in Render World units. |
- Returns
- The equivalent value in Physics World units.
◆ RW2PW() [3/4]
- Parameters
-
| x | An integer value in Render World units. |
- Returns
- The equivalent floating point value in Physics World units.
◆ RW2PW() [4/4]
| b2Vec2 RW2PW |
( |
int | x, |
|
|
int | y ) |
|
inline |
- Parameters
-
| x | An integer value in Render World units. |
| y | An integer value in Render World units. |
- Returns
- The equivalent 2D vector in Physics World units.