FS2_Open
Open source remastering of the Freespace 2 engine
techmenu.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 _TECHMENU_H
13 #define _TECHMENU_H
14 
15 #include "globalincs/globals.h"
16 
17 #define MAX_INTEL_ENTRIES 75
18 #define TECH_INTEL_DESC_LEN 5120
19 
20 typedef struct {
22  char desc[TECH_INTEL_DESC_LEN];
23  char anim_filename[NAME_LENGTH];
24  int flags;
25 } intel_data;
26 
27 // flags by Goober5000
28 #define IIF_DEFAULT_VALUE 0
29 #define IIF_IN_TECH_DATABASE (1 << 0) // in tech database? - Goober5000
30 #define IIF_DEFAULT_IN_TECH_DATABASE (1 << 1) // in tech database by default? - Goober5000
31 
32 extern int Techroom_overlay_id;
33 
35 extern int Intel_info_size;
36 
37 
38 // function prototypes
39 void techroom_init();
40 void techroom_close();
41 void techroom_do_frame(float frametime);
43 void techroom_intel_init(); // called on startup so campaigns can manipulate tech room visibility
44 int intel_info_lookup(char *name);
45 extern void tech_reset_to_default();
46 
47 #endif
void techroom_do_frame(float frametime)
Definition: techmenu.cpp:1269
void techroom_close()
Definition: techmenu.cpp:1250
int Techroom_overlay_id
Definition: techmenu.cpp:218
intel_data Intel_info[MAX_INTEL_ENTRIES]
Definition: techmenu.cpp:246
#define TECH_INTEL_DESC_LEN
Definition: techmenu.h:18
int intel_info_lookup(char *name)
Definition: techmenu.cpp:1422
void tech_reset_to_default()
Definition: techmenu.cpp:1438
int flags
Definition: techmenu.h:24
GLuint const GLchar * name
Definition: Glext.h:5608
void techroom_intel_init()
Definition: techmenu.cpp:1050
#define NAME_LENGTH
Definition: globals.h:15
void techroom_init()
Definition: techmenu.cpp:1102
int techroom_on_ships_tab()
#define MAX_INTEL_ENTRIES
Definition: techmenu.h:17
int Intel_info_size
Definition: techmenu.cpp:247