aboutsummaryrefslogtreecommitdiff
path: root/src/parsec/include/h_cockpt.h
blob: e6b00dad9d89d6953239301c5da28e86b5aacfe8 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
 * PARSEC HEADER: h_cockpt.h
 */

#ifndef _H_COCKPT_H_
#define _H_COCKPT_H_


// geometry of all cockpit elements -------------------------------------------
//
struct cockpitinfo_s {

	float		xpos;
	float		ypos;
	float		width;
	float		height;
	int			owidth;
	int			oheight;

	TextureMap*	texmap;
	const char*	texname;
};


// indices into cockpitinfo[] structure ---------------------------------------
//
enum {

	DAMAGE1,
	DAMAGE1_SLICE,
	DAMAGE2,
	DAMAGE2_SLICE,
	WEAPONS1,
	WEAPONS1_SLICE,
	WEAPONS2,
	WEAPONS2_WORM,
	WEAPONS2_ELITE,
	RADAR,
	RADAR_SLICE,
	RADAR_ELITE,
	ICONBAR1,
	ICONBAR2,
	ENERGYBAR,
	ENERGYBAR_EMPTY,
	SPEEDBAR,
	SPEEDBAR_EMPTY,
	DAMAGEBAR1,
	DAMAGEBAR1_EMPTY,
	DAMAGEBAR2,
	DAMAGEBAR2_EMPTY,
	CROSS,
	CROSS2,
	INCOMING
};


// external functions

void 	COCKPIT_DrawDisplay();
void	COCKPIT_DrawQuickSayBuffer();

void 	FadeInCockpit();
void 	FadeOutCockpit();


// external variables

extern cockpitinfo_s	cockpitinfo[];
extern int				cp_scale;
extern float			scale_tab[];
extern int				cockpit_messagearea_yoffs;
extern float 			Scaled_Screen_Width;
extern float 			Scaled_Screen_Height;


#endif // _H_COCKPT_H_