diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
| commit | c068f22329d5cc722622a2183bbb22eef2093df7 (patch) | |
| tree | 12d56c1aede67988a55e241364606bfbb4dba933 /src/parsec/include/h_cockpt.h | |
| download | openparsec-main.tar.xz openparsec-main.zip | |
Diffstat (limited to 'src/parsec/include/h_cockpt.h')
| -rw-r--r-- | src/parsec/include/h_cockpt.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/src/parsec/include/h_cockpt.h b/src/parsec/include/h_cockpt.h new file mode 100644 index 0000000..e6b00da --- /dev/null +++ b/src/parsec/include/h_cockpt.h @@ -0,0 +1,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_ + + |
