Back to index

extremetuxracer  0.5beta
Defines | Variables
hud.cpp File Reference
#include "gl_util.h"
#include "fps.h"
#include "phys_sim.h"
#include "course_mgr.h"
#include "game_config.h"
#include "hud.h"
#include "stuff.h"
#include "game_mgr.h"
#include "ppgltk/ui_mgr.h"
#include "ppgltk/alg/defs.h"

Go to the source code of this file.

Defines

#define ENERGY_GAUGE_BOTTOM   3.0
#define ENERGY_GAUGE_CENTER_X   71.0
#define ENERGY_GAUGE_CENTER_Y   55.0
#define SPEEDBAR_OUTER_RADIUS   ( ENERGY_GAUGE_CENTER_X )
#define SPEEDBAR_BASE_ANGLE   225
#define SPEEDBAR_MAX_ANGLE   45
#define SPEEDBAR_GREEN_MAX_SPEED   ( MAX_PADDLING_SPEED * M_PER_SEC_TO_KM_PER_H )
#define SPEEDBAR_YELLOW_MAX_SPEED   100
#define SPEEDBAR_RED_MAX_SPEED   160
#define SPEEDBAR_GREEN_FRACTION   0.5
#define SPEEDBAR_YELLOW_FRACTION   0.25
#define SPEEDBAR_RED_FRACTION   0.25
#define SPEED_UNITS_Y_OFFSET   4.0
#define CIRCLE_DIVISIONS   10

Variables

HUD HUD1
static GLfloat energy_background_color [] = { 0.2, 0.2, 0.2, 0.5 }
static GLfloat energy_foreground_color [] = { 0.54, 0.59, 1.0, 1.0 }
static GLfloat speedbar_background_color [] = { 0.2, 0.2, 0.2, 0.5 }
static GLfloat white [] = { 1.0, 1.0, 1.0, 1.0 }

Define Documentation

#define CIRCLE_DIVISIONS   10

Definition at line 473 of file hud.cpp.

#define ENERGY_GAUGE_BOTTOM   3.0

Definition at line 322 of file hud.cpp.

#define ENERGY_GAUGE_CENTER_X   71.0

Definition at line 323 of file hud.cpp.

#define ENERGY_GAUGE_CENTER_Y   55.0

Definition at line 324 of file hud.cpp.

#define SPEED_UNITS_Y_OFFSET   4.0

Definition at line 334 of file hud.cpp.

#define SPEEDBAR_BASE_ANGLE   225

Definition at line 326 of file hud.cpp.

#define SPEEDBAR_GREEN_FRACTION   0.5

Definition at line 331 of file hud.cpp.

Definition at line 328 of file hud.cpp.

#define SPEEDBAR_MAX_ANGLE   45

Definition at line 327 of file hud.cpp.

Definition at line 325 of file hud.cpp.

#define SPEEDBAR_RED_FRACTION   0.25

Definition at line 333 of file hud.cpp.

#define SPEEDBAR_RED_MAX_SPEED   160

Definition at line 330 of file hud.cpp.

#define SPEEDBAR_YELLOW_FRACTION   0.25

Definition at line 332 of file hud.cpp.

#define SPEEDBAR_YELLOW_MAX_SPEED   100

Definition at line 329 of file hud.cpp.


Variable Documentation

GLfloat energy_background_color[] = { 0.2, 0.2, 0.2, 0.5 } [static]

Definition at line 336 of file hud.cpp.

GLfloat energy_foreground_color[] = { 0.54, 0.59, 1.0, 1.0 } [static]

Definition at line 337 of file hud.cpp.

Definition at line 35 of file hud.cpp.

GLfloat speedbar_background_color[] = { 0.2, 0.2, 0.2, 0.5 } [static]

Definition at line 338 of file hud.cpp.

GLfloat white[] = { 1.0, 1.0, 1.0, 1.0 } [static]

Definition at line 339 of file hud.cpp.