Open source remastering of the Freespace 2 engine
Go to the documentation of this file.
1 /*
2  * Copyright (C) Volition, Inc. 1999. All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell
5  * or otherwise commercially exploit the source or things you created based on the
6  * source.
7  *
8 */
12 #ifndef __HUDWINGMAN_STATUS_H__
13 #define __HUDWINGMAN_STATUS_H__
15 #include "hud/hud.h"
17 struct wing;
18 class ship;
19 class p_object;
25 int hud_wingman_status_maybe_flash(int wing_index, int wing_pos);
26 void hud_set_wingman_status_dead(int wing_index, int wing_pos);
27 void hud_set_wingman_status_departed(int wing_index, int wing_pos);
28 void hud_set_wingman_status_alive( int wing_index, int wing_pos);
29 void hud_set_wingman_status_none( int wing_index, int wing_pos);
30 void hud_wingman_status_start_flash(int wing_index, int wing_pos);
31 void hud_wingman_status_set_index(wing *wingp, ship *shipp, p_object *pobjp);
34 {
35 protected:
46  int actual_origin[2];
53  int grow_mode;
59 public:
61  void initBitmaps(char *fname_left, char *fname_middle, char *fname_right, char *fname_dots);
62  void initHeaderOffsets(int x, int y);
63  void initFixedHeaderPosition(bool fixed);
64  void initLeftFrameEndX(int x);
65  void initSingleWingOffsets(int x, int y);
66  void initMultipleWingOffsets(int x, int y);
67  void initWingWidth(int w);
68  void initRightBgOffset(int offset);
69  void initWingNameOffsets(int x, int y);
70  void initWingmate1Offsets(int x, int y);
71  void initWingmate2Offsets(int x, int y);
72  void initWingmate3Offsets(int x, int y);
73  void initWingmate4Offsets(int x, int y);
74  void initWingmate5Offsets(int x, int y);
75  void initWingmate6Offsets(int x, int y);
76  void initGrowMode(int mode);
77  void pageIn();
78  void initialize();
79  void render(float frametime);
80  void renderBackground(int num_wings_to_draw);
81  void renderDots(int wing_index, int screen_index, int num_wings_to_draw);
82  void initFlash();
83  bool maybeFlashStatus(int wing_index, int wing_pos);
84 };
86 #endif
void hud_wingman_status_init_flash()
void renderDots(int wing_index, int screen_index, int num_wings_to_draw)
void initWingmate4Offsets(int x, int y)
void initWingmate6Offsets(int x, int y)
Definition: ship.h:1516
void initFixedHeaderPosition(bool fixed)
GLenum mode
Definition: Glext.h:5794
void render(float frametime)
int hud_wingman_status_maybe_flash(int wing_index, int wing_pos)
Definition: globals.h:52
Definition: globals.h:55
ship * shipp
Definition: lua.cpp:9162
void initRightBgOffset(int offset)
Definition: hud.h:201
void hud_init_wingman_status_gauge()
GLintptr offset
Definition: Glext.h:5497
hud_frames Wingman_status_middle
int wingmate_offsets[MAX_SHIPS_PER_WING][2]
void hud_wingman_status_render()
void initMultipleWingOffsets(int x, int y)
void initBitmaps(char *fname_left, char *fname_middle, char *fname_right, char *fname_dots)
hud_frames Wingman_status_left
void hud_set_wingman_status_departed(int wing_index, int wing_pos)
Definition: hud.h:32
hud_frames Wingman_status_dots
Definition: ship.h:534
bool maybeFlashStatus(int wing_index, int wing_pos)
void hud_set_wingman_status_none(int wing_index, int wing_pos)
GLint GLint GLint GLint GLint x
Definition: Glext.h:5182
void hud_set_wingman_status_dead(int wing_index, int wing_pos)
void initHeaderOffsets(int x, int y)
void renderBackground(int num_wings_to_draw)
void hud_wingman_status_set_index(wing *wingp, ship *shipp, p_object *pobjp)
void hud_wingman_status_update()
GLubyte GLubyte GLubyte GLubyte w
Definition: Glext.h:5679
void initWingNameOffsets(int x, int y)
void initSingleWingOffsets(int x, int y)
void initWingmate1Offsets(int x, int y)
void initWingmate3Offsets(int x, int y)
void hud_wingman_status_start_flash(int wing_index, int wing_pos)
hud_frames Wingman_status_right
GLint y
Definition: Gl.h:1505
void hud_set_wingman_status_alive(int wing_index, int wing_pos)
void initWingmate5Offsets(int x, int y)
void initWingmate2Offsets(int x, int y)