]> icculus.org git repositories - taylor/freespace2.git/blob - src/graphics/grstub.cpp
merge gamepad support
[taylor/freespace2.git] / src / graphics / grstub.cpp
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 #include "pstypes.h"
11 #include "2d.h"
12
13
14 static void stub_void_void()
15 {
16 }
17
18 static void stub_void_int(int)
19 {
20 }
21
22 static void stub_void_int2(int, int)
23 {
24 }
25
26 static void stub_void_int3(int, int, int)
27 {
28 }
29
30 static void stub_void_int4(int, int, int, int)
31 {
32 }
33
34 static void stub_void_int6(int, int, int, int, int, int)
35 {
36 }
37
38 static void stub_void_vertex2(vertex *, vertex *)
39 {
40 }
41
42 static void stub_string(int, int, const char *)
43 {
44 }
45
46 static void stub_tmapper(int, vertex *[], uint)
47 {
48 }
49
50 static void stub_print_screen(const char *)
51 {
52 }
53
54 static int stub_save_screen()
55 {
56         return -1;
57 }
58
59 static void stub_set_gamma(float)
60 {
61 }
62
63 static uint stub_lock()
64 {
65         return 0;
66 }
67
68 static void stub_fog_set(int, int, int, int, float, float)
69 {
70 }
71
72 static void stub_get_region(int, int, int, ubyte *)
73 {
74 }
75
76 static void stub_cross_fade(int, int, int, int, int, int, float)
77 {
78 }
79
80 static int stub_preload(int, int)
81 {
82         return 1;
83 }
84
85 static void stub_stream_frame(ubyte *)
86 {
87 }
88
89
90 void gr_stub_init()
91 {
92         gr_screen.gf_flip = stub_void_void;
93         gr_screen.gf_set_clip = stub_void_int4;
94         gr_screen.gf_reset_clip = stub_void_void;
95
96         gr_screen.gf_clear = stub_void_void;
97
98         gr_screen.gf_aabitmap = stub_void_int2;
99         gr_screen.gf_aabitmap_ex = stub_void_int6;
100
101         gr_screen.gf_rect = stub_void_int4;
102         gr_screen.gf_shade = stub_void_int4;
103         gr_screen.gf_string = stub_string;
104         gr_screen.gf_circle = stub_void_int3;
105
106         gr_screen.gf_line = stub_void_int4;
107         gr_screen.gf_aaline = stub_void_vertex2;
108         gr_screen.gf_pixel = stub_void_int2;
109         gr_screen.gf_scaler = stub_void_vertex2;
110         gr_screen.gf_tmapper = stub_tmapper;
111
112         gr_screen.gf_gradient = stub_void_int4;
113
114         gr_screen.gf_print_screen = stub_print_screen;
115
116         gr_screen.gf_fade_in = stub_void_int;
117         gr_screen.gf_fade_out = stub_void_int;
118         gr_screen.gf_flash = stub_void_int3;
119
120         gr_screen.gf_zbuffer_clear = stub_void_int;
121
122         gr_screen.gf_save_screen = stub_save_screen;
123         gr_screen.gf_restore_screen = stub_void_int;
124         gr_screen.gf_free_screen = stub_void_int;
125
126         gr_screen.gf_dump_frame_start = stub_void_int2;
127         gr_screen.gf_dump_frame_stop = stub_void_void;
128         gr_screen.gf_dump_frame = stub_void_void;
129
130         gr_screen.gf_stream_start = stub_void_int4;
131         gr_screen.gf_stream_frame = stub_stream_frame;
132         gr_screen.gf_stream_stop = stub_void_void;
133
134         gr_screen.gf_set_gamma = stub_set_gamma;
135
136         gr_screen.gf_lock = stub_lock;
137         gr_screen.gf_unlock = stub_void_void;
138
139         gr_screen.gf_fog_set = stub_fog_set;
140
141         gr_screen.gf_get_region = stub_get_region;
142
143         gr_screen.gf_set_cull = stub_void_int;
144
145         gr_screen.gf_cross_fade = stub_cross_fade;
146
147         gr_screen.gf_preload_init = stub_void_void;
148         gr_screen.gf_preload = stub_preload;
149
150         gr_screen.gf_zbias = stub_void_int;
151
152         gr_screen.gf_set_viewport = stub_void_int2;
153
154         gr_screen.gf_activate = stub_void_int;
155
156         gr_screen.gf_release_texture = stub_void_int;
157 }