FS2_Open
Open source remastering of the Freespace 2 engine
hudbrackets.h
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 */
9 
10 
11 
12 #ifndef HUD_BRACKETS
13 #define HUD_BRACKETS
14 
15 #include "hud/hud.h"
16 
17 void hud_init_brackets();
18 // two unused functions, candidates for removal?
19 #if 0
20 void draw_bounding_brackets(int x1, int y1, int x2, int y2, int w_correction, int h_correction, float distance=0.0f, int target_objnum=-1);
21 void draw_bounding_brackets_subobject();
22 #endif
23 void draw_brackets_square(int x1, int y1, int x2, int y2, int resize_mode = GR_RESIZE_FULL);
24 void draw_brackets_diamond(int x1, int y1, int x2, int y2);
25 void draw_brackets_square_quick(int x1, int y1, int x2, int y2, int thick=0);
26 void draw_brackets_diamond_quick(int x1, int y1, int x2, int y2);
27 void draw_brackets_dashed_square_quick(int x1, int y1, int x2, int y2);
28 
29 int draw_subsys_brackets(ship_subsys* subsys, int min_width, int min_height, bool draw = true, bool set_color = true, int* draw_coords = NULL);
30 
32 {
33 protected:
35 
40 public:
42  void initMinTargetBoxSizes(int w, int h);
43  void initMinSubTargetBoxSizes(int w, int h);
44  void initBitmaps(char *fname);
45  void render(float frametime);
46  void renderObjectBrackets(object *targetp, color *clr, int w_correction, int h_correction, int flags);
47  void renderNavBrackets(vec3d* nav_pos, vertex* nav_point, color* clr, char* string);
48  void renderBoundingBrackets(int x1, int y1, int x2, int y2, int w_correction, int h_correction, float distance, int target_objnum, int flags);
50  void renderDistance(int x, int y, float distance);
51 };
52 
53 #endif
void renderObjectBrackets(object *targetp, color *clr, int w_correction, int h_correction, int flags)
void draw_brackets_square(int x1, int y1, int x2, int y2, int resize_mode=GR_RESIZE_FULL)
Definition: hudbrackets.cpp:49
GLfloat GLfloat GLfloat GLfloat h
Definition: Glext.h:7280
void draw_brackets_diamond(int x1, int y1, int x2, int y2)
void draw_brackets_diamond_quick(int x1, int y1, int x2, int y2)
void renderNavBrackets(vec3d *nav_pos, vertex *nav_point, color *clr, char *string)
int Min_target_box_height
Definition: hudbrackets.h:37
void hud_init_brackets()
Definition: hudbrackets.cpp:44
int Min_target_box_width
Definition: hudbrackets.h:36
Definition: pstypes.h:88
Definition: 2d.h:95
void initBitmaps(char *fname)
GLclampf f
Definition: Glext.h:7097
void draw_brackets_square_quick(int x1, int y1, int x2, int y2, int thick=0)
Definition: hudbrackets.cpp:92
Definition: hud.h:201
int Min_subtarget_box_width
Definition: hudbrackets.h:38
void initMinSubTargetBoxSizes(int w, int h)
void renderDistance(int x, int y, float distance)
GLint GLint GLint GLint GLint x
Definition: Glext.h:5182
#define GR_RESIZE_FULL
Definition: 2d.h:682
int draw_subsys_brackets(ship_subsys *subsys, int min_width, int min_height, bool draw=true, bool set_color=true, int *draw_coords=NULL)
GLbitfield flags
Definition: Glext.h:6722
GLubyte GLubyte GLubyte GLubyte w
Definition: Glext.h:5679
int Min_subtarget_box_height
Definition: hudbrackets.h:39
void renderBoundingBrackets(int x1, int y1, int x2, int y2, int w_correction, int h_correction, float distance, int target_objnum, int flags)
void initMinTargetBoxSizes(int w, int h)
void draw_brackets_dashed_square_quick(int x1, int y1, int x2, int y2)
void render(float frametime)
GLint y
Definition: Gl.h:1505
void renderBoundingBracketsSubobject()