![]() |
Box2D Cannon Game With Stars
Ian Parberry's "Introduction to Game Physics"
|
The heads-up display. More...
#include <Hud.h>
Public Member Functions | |
| ~CHeadsUpDisplay () | |
| Destructor. | |
| void | draw (UINT, float, float) |
| Draw HUD. More... | |
| void | Initialize () |
| Create HUD objects. More... | |
Private Attributes | |
| std::vector< CObject * > | m_stdList |
| Object list. | |
Additional Inherited Members | |
Static Protected Attributes inherited from CCommon | |
| static b2World * | m_pPhysicsWorld = nullptr |
| Pointer to Box2D Physics World. | |
| static CRenderer * | m_pRenderer = nullptr |
| Pointer to Render World. | |
| static CObjectManager * | m_pObjectManager = nullptr |
| Pointer to object manager. | |
| static LParticleEngine2D * | m_pParticleEngine = nullptr |
| Pointer to particle engine. | |
| static bool | m_bEasterEgg = false |
| Easter egg! | |
The heads-up display.
The HUD consists of a temperature guage and a clock, both of which are animated.
| void CHeadsUpDisplay::draw | ( | UINT | secs, |
| float | t, | ||
| float | mt | ||
| ) |
Draw HUD.
Draw the temperature guage and clock.
| secs | Number of seconds to display on clock. |
| t | Temperature to display on thermometer. |
| mt | Maximimum temperature that thermometer can display. |
| void CHeadsUpDisplay::Initialize | ( | ) |
Create HUD objects.
Create the HUD objects and collect them in the object list.