forked from tstellar/cs510fly
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDisplay.h
37 lines (27 loc) · 1010 Bytes
/
Display.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef DISPLAY_H
#define DISPLAY_H
#include "OgreTextAreaOverlayElement.h"
#include "Game.h"
class Display {
Game * const game;
Ogre::Overlay * const overlay;
Ogre::OverlayContainer * const infoBar;
Ogre::TextAreaOverlayElement * const levelTextBox;
Ogre::TextAreaOverlayElement * const distanceTextBox;
Ogre::OverlayContainer * const statsPanel;
Ogre::TextAreaOverlayElement * const positionTextBox;
Ogre::TextAreaOverlayElement * const velocityTextBox;
Ogre::TextAreaOverlayElement * const pitchRollYawTextBox;
Ogre::TextAreaOverlayElement * const thrustTextBox;
Ogre::TextAreaOverlayElement * const speedTextBox;
Ogre::TextAreaOverlayElement * const aoaTextBox;
Ogre::ColourValue normalValueColor, maxedValueColor;
public:
Display(Game *);
void setup();
void update(float dt);
private:
Ogre::TextAreaOverlayElement * getTextArea(
Ogre::String name, Ogre::OverlayContainer * parent = NULL);
};
#endif