FS2_Open
Open source remastering of the Freespace 2 engine
missiontraining.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 #ifndef __MISSIONTRAINING_H__
11 #define __MISSIONTRAINING_H__
12 
13 #include "hud/hud.h"
14 
15 extern int Max_directives;
16 extern int Training_message_method;
17 extern int Training_num_lines;
18 extern int Training_message_visible;
19 extern int Training_failure;
20 
24 void message_training_queue(char *text, int timestamp, int length = -1);
25 void message_training_setup(int num, int length = -1);
26 void message_translate_tokens(char *buf, char *text);
27 void training_fail();
29 
31 {
32 protected:
36 
41  int text_h;
43 public:
45  void initBitmaps(char *fname_top, char *fname_middle, char *fname_bottom);
46  void initHeaderOffsets(int x, int y);
47  void initMiddleFrameOffsetY(int y);
48  void initBottomBgOffset(int offset);
49  void initTextStartOffsets(int x, int y);
50  void initTextHeight(int h);
51  void initMaxLineWidth(int w);
52  void render(float frametime);
53  void pageIn();
54  bool canRender();
55 };
56 
58 {
59 protected:
60 public:
62  void render(float frametime);
63  void pageIn();
64  bool canRender();
65 };
66 
67 #endif /* __MISSIONTRAINING_H__ */
int timestamp(int delta_ms)
Definition: timer.cpp:226
GLfloat GLfloat GLfloat GLfloat h
Definition: Glext.h:7280
void message_translate_tokens(char *buf, char *text)
void initMaxLineWidth(int w)
void initBottomBgOffset(int offset)
hud_frames directives_bottom
int Training_failure
hud_frames directives_top
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: Glext.h:7308
void message_training_setup(int num, int length=-1)
Definition: hud.h:201
GLintptr offset
Definition: Glext.h:5497
void render(float frametime)
int Training_message_visible
void initMiddleFrameOffsetY(int y)
Definition: hud.h:32
void training_mission_init()
int Training_message_method
GLint GLint GLint GLint GLint x
Definition: Glext.h:5182
void message_training_queue(char *text, int timestamp, int length=-1)
void message_training_update_frame()
void initTextStartOffsets(int x, int y)
void training_mission_shutdown()
GLuint GLuint num
Definition: Glext.h:9089
void initHeaderOffsets(int x, int y)
void initTextHeight(int h)
GLubyte GLubyte GLubyte GLubyte w
Definition: Glext.h:5679
void initBitmaps(char *fname_top, char *fname_middle, char *fname_bottom)
GLenum GLuint GLenum GLsizei length
Definition: Glext.h:5156
void training_check_objectives()
hud_frames directives_middle
void render(float frametime)
void training_fail()
int Training_num_lines
int Max_directives
GLint y
Definition: Gl.h:1505