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