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 _HUDLOCK_H
13 #define _HUDLOCK_H
15 #include "hud/hud.h"
18 void hud_draw_lock_triangles(int center_x, int center_y, float frametime);
19 void hud_calculate_lock_position(float frametime);
21 void hud_show_lock_indicator(float frametime, vec3d *lock_point_pos);
22 void hud_do_lock_indicator(float frametime);
24 void hud_lock_reset(float lock_time_scale=1.0f);
26 class HudGaugeLock: public HudGauge
27 {
28 protected:
48 public:
49  HudGaugeLock();
50  void initBitmaps(char *lock_gauge_fname, char *lock_anim_fname);
51  void initGaugeHalfSize(int w, int h);
52  void initSpinHalfSize(int w, int h);
53  void initTriHeight(float h);
54  void initTriBase(float length);
55  void initTargetBoxSize(int w, int h);
56  void initLoopLockedAnim(bool loop);
58  void render(float frametime);
59  void renderLockTriangles(int center_x, int center_y, float frametime);
60  void renderLockTrianglesOld(int center_x, int center_y, int radius);
61  void pageIn();
62  void initialize();
63 };
65 #endif
int Rotate_time_id
Definition: hudlock.h:43
GLfloat GLfloat GLfloat GLfloat h
Definition: Glext.h:7280
int Lock_gauge_draw_stamp
Definition: hudlock.h:44
Definition: pstypes.h:88
void hud_lock_reset(float lock_time_scale=1.0f)
Definition: hudlock.cpp:271
GLclampf f
Definition: Glext.h:7097
int Lockspin_half_h
Definition: hudlock.h:37
hud_anim Lock_anim
Definition: hudlock.h:30
void pageIn()
Definition: hudlock.cpp:1146
int Lock_gauge_draw
Definition: hudlock.h:45
void initBitmaps(char *lock_gauge_fname, char *lock_anim_fname)
Definition: hudlock.cpp:145
void hud_stop_looped_locking_sounds()
Definition: hudlock.cpp:978
Definition: hud.h:201
void hud_do_lock_indicator(float frametime)
Definition: hudlock.cpp:492
bool Last_lock_status
Definition: hudlock.h:47
void initTriHeight(float h)
Definition: hudlock.cpp:124
float Lock_triangle_base
Definition: hudlock.h:39
float Lock_triangle_height
Definition: hudlock.h:38
void renderLockTrianglesOld(int center_x, int center_y, int radius)
Definition: hudlock.cpp:635
int Lock_target_box_width
Definition: hudlock.h:40
void initTargetBoxSize(int w, int h)
Definition: hudlock.cpp:134
int Lock_gauge_half_w
Definition: hudlock.h:34
void initLoopLockedAnim(bool loop)
Definition: hudlock.cpp:140
void hud_draw_lock_triangles(int center_x, int center_y, float frametime)
void renderLockTriangles(int center_x, int center_y, float frametime)
Definition: hudlock.cpp:668
void hud_calculate_lock_position(float frametime)
Definition: hudlock.cpp:710
int Lock_gauge_half_h
Definition: hudlock.h:35
int Lockspin_half_w
Definition: hudlock.h:36
void render(float frametime)
Definition: hudlock.cpp:171
Definition: hud.h:22
hud_anim Lock_gauge
Definition: hudlock.h:29
bool loop_locked_anim
Definition: hudlock.h:32
void initSpinHalfSize(int w, int h)
Definition: hudlock.cpp:118
GLubyte GLubyte GLubyte GLubyte w
Definition: Glext.h:5679
void hud_init_missile_lock()
Definition: hudlock.cpp:97
void initialize()
Definition: hudlock.cpp:154
void initGaugeHalfSize(int w, int h)
Definition: hudlock.cpp:112
GLenum GLuint GLenum GLsizei length
Definition: Glext.h:5156
void hud_calculate_lock_start_pos()
Definition: hudlock.cpp:942
void hud_show_lock_indicator(float frametime, vec3d *lock_point_pos)
int Lock_target_box_height
Definition: hudlock.h:41
void initTriBase(float length)
Definition: hudlock.cpp:129