]> icculus.org git repositories - taylor/freespace2.git/blob - include/muzzleflash.h
rendering functions mostly done; more complete shader setup
[taylor/freespace2.git] / include / muzzleflash.h
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
6  * the source.
7  */
8
9 /*
10  * $Logfile: /Freespace2/code/Weapon/MuzzleFlash.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * all sorts of cool stuff about ships
16  *
17  * $Log$
18  * Revision 1.2  2002/06/09 04:41:14  relnev
19  * added copyright header
20  *
21  * Revision 1.1.1.1  2002/05/03 03:28:12  root
22  * Initial import.
23  *
24  * 
25  * 4     5/18/99 1:30p Dave
26  * Added muzzle flash table stuff.
27  * 
28  * 3     3/19/99 9:52a Dave
29  * Checkin to repair massive source safe crash. Also added support for
30  * pof-style nebulae, and some new weapons code.
31  * 
32  * 2     1/08/99 2:08p Dave
33  * Fixed software rendering for pofview. Super early support for AWACS and
34  * beam weapons.
35  * 
36  * 
37  * $NoKeywords: $
38  */
39
40 #ifndef __FS2_MUZZLEFLASH_HEADER_FILE
41 #define __FS2_MUZZLEFLASH_HEADER_FILE
42
43 // ---------------------------------------------------------------------------------------------------------------------
44 // MUZZLE FLASH DEFINES/VARS
45 // 
46
47 // prototypes
48 struct object;
49
50 // muzzle flash types
51 #define MAX_MUZZLE_FLASH_TYPES                          10
52 extern int Num_mflash_types;
53
54 // ---------------------------------------------------------------------------------------------------------------------
55 // MUZZLE FLASH FUNCTIONS
56 // 
57
58 // initialize muzzle flash stuff for the whole game
59 void mflash_game_init();
60
61 // initialize muzzle flash stuff for the level
62 void mflash_level_init();
63
64 // shutdown stuff for the level
65 void mflash_level_close();
66
67 // create a muzzle flash on the guy
68 void mflash_create(vector *gun_pos, vector *gun_dir, int mflash_type);
69
70 // process muzzle flash stuff
71 void mflash_process_all();
72
73 // render all muzzle flashes
74 void mflash_render_all();
75
76 // lookup type by name
77 int mflash_lookup(char *name);
78
79 #endif
80