]> icculus.org git repositories - taylor/freespace2.git/blob - include/grd3d.h
Initial revision
[taylor/freespace2.git] / include / grd3d.h
1 /*
2  * $Logfile: /Freespace2/code/Graphics/GrD3D.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * Include file for our Direct3D renderer
8  *
9  * $Log$
10  * Revision 1.1  2002/05/03 03:28:12  root
11  * Initial revision
12  *
13  * 
14  * 6     9/13/99 11:25p Dave
15  * Fixed problem with mode-switching and D3D movies.
16  * 
17  * 5     9/04/99 8:00p Dave
18  * Fixed up 1024 and 32 bit movie support.
19  * 
20  * 4     6/29/99 10:35a Dave
21  * Interface polygon bitmaps! Whee!
22  * 
23  * 3     1/15/99 11:29a Neilk
24  * Fixed D3D screen/texture pixel formatting problem. 
25  * 
26  * 2     10/07/98 10:52a Dave
27  * Initial checkin.
28  * 
29  * 1     10/07/98 10:49a Dave
30  * 
31  * 2     5/12/97 12:27p John
32  * Restructured Graphics Library to add support for multiple renderers.
33  * 
34  * 1     5/01/97 2:17p John
35  *
36  * $NoKeywords: $
37  */
38
39 #ifndef _GRD3D_H
40 #define _GRD3D_H
41
42 void gr_d3d_init();
43 void gr_d3d_cleanup();
44
45 // call this to safely fill in the texture shift and scale values for the specified texture type (Gr_t_*)
46 void gr_d3d_get_tex_format(int alpha);
47
48 // bitmap functions
49 void gr_d3d_bitmap(int x, int y);
50 void gr_d3d_bitmap_ex(int x, int y, int w, int h, int sx, int sy);
51
52 // create all rendering objects (surfaces, d3d device, viewport, etc)
53 int gr_d3d_create_rendering_objects(int clear);
54 void gr_d3d_release_rendering_objects();
55
56
57 void gr_d3d_set_initial_render_state();
58
59 #endif
60