Public Member Functions |
| Gui (IRender &render, IPhysic &physic, pMouseDevice mouse, const MouseMap &mousemap) |
| Contructor.
|
| ~Gui (void) |
pIControl | createLabel (float x, float y, float width, float height, int textureIndex) |
| Creates a Label object and returns a reference to it.
|
pIControl | createButton (float x, float y, float width, float height, void callback(pIControl), int textureIndex) |
| Creates a Button object and returns a reference to it.
|
void | setGuiTexture (wchar *textureColor) |
| Sets the gui texture for all controls.
|
void | addControl (pIControl) |
| Adds the supplied control to the current GUI.
|
void | update () |
void | setUpStatusLabels () |
| Loads Status labels for wireframe, texture and camera modes.
|
void | showStatusLabel (int index) |
| Displays the specified status label.
|
void | hideAllStatusLabels () |
| hides all status labels
|
void | showFPS () |
| Show the current frames per second.
|
void | hideFPS () |
| Hides frame rate count again.
|
void | setFPSValue (int fps) |
| Sets the current frame rate.
|
void | showWinnerLabel () |
| Displays the Winner label.
|
Protected Member Functions |
bool | loadTextureData (const wchar *colorFilename, const wchar *normalFilename, const wchar *heightFilename, TextureData &out) |
| loads texture data from files
|
bool | loadUnknown (const wchar *filename, int &width, int &height, Pixel **outData) |
| determines filetype and runs appropriate method
|
bool | loadBMP (const wchar *filename, int &width, int &height, Pixel **outData) |
| loads texture data from bitmap
|
bool | loadTGA (const wchar *filename, int &width, int &height, Pixel **outData) |
| load texture data from tga
|
uint | ShiftRightByMask (uint Color, uint Mask, uint DistributeToBits=8) |
Protected Attributes |
pITexture | m_guiTexture |
int | m_numControls |
std::vector< pIControl > | m_controls |
pMouseDevice | m_mouse |
MouseMap | m_mouseMap |
IPhysic & | m_physic |
IRender & | m_render |
pIControl | m_statusLabels [10] |
pIControl | m_fpsLabel [3] |
pIControl | m_winnerLabel |
GUI class.