FS2_Open
Open source remastering of the Freespace 2 engine
grstub.cpp
Go to the documentation of this file.
1 
2 
3 #include "anim/animplay.h"
4 #include "anim/packunpack.h"
5 #include "bmpman/bmpman.h"
6 #include "ddsutils/ddsutils.h"
8 #include "graphics/2d.h"
9 #include "graphics/grinternal.h"
10 #include "jpgutils/jpgutils.h"
11 #include "model/model.h"
12 #include "pcxutils/pcxutils.h"
13 #include "pngutils/pngutils.h"
14 #include "tgautils/tgautils.h"
15 
16 #define BMPMAN_INTERNAL
17 #include "bmpman/bm_internal.h"
18 
19 
21 {
22  return 1;
23 }
24 
25 // NOTE: should return a failure
27 {
28  return -1;
29 }
30 
31 // NOTE: should return a failure
32 bool gr_stub_pack_buffer(const int buffer_id, vertex_buffer *vb)
33 {
34  return false;
35 }
36 
37 // NOTE: should return a failure
38 bool gr_stub_config_buffer(const int buffer_id, vertex_buffer *vb, bool update_ibuffer_only)
39 {
40  return false;
41 }
42 
43 int gr_stub_make_light(light *light, int idx, int priority)
44 {
45  return 0;
46 }
47 
48 int gr_stub_preload(int bitmap_num, int is_aabitmap)
49 {
50  return 0;
51 }
52 
54 {
55  return 1;
56 }
57 
58 int gr_stub_tcache_set(int bitmap_id, int bitmap_type, float *u_scale, float *v_scale, int tex_unit = 0)
59 {
60  return 0;
61 }
62 
64 {
65  return 0;
66 }
67 
69 {
70  return 0;
71 }
72 
74 {
75 }
76 
77 void gr_stub_aabitmap_ex(int x,int y,int w,int h,int sx,int sy,int resize_mode,bool mirror)
78 {
79 }
80 
81 void gr_stub_aabitmap(int x, int y,int resize_mode, bool mirror)
82 {
83 }
84 
86 {
87 }
88 
89 void gr_stub_activate(int active)
90 {
91 }
92 
93 void gr_stub_bitmap_ex(int x, int y, int w, int h, int sx, int sy, int resize_mode)
94 {
95 }
96 
97 void gr_stub_bitmap(int x, int y)
98 {
99 }
100 
102 {
103 }
104 
106 {
107 }
108 
109 void gr_stub_circle( int xc, int yc, int d, int resize_mode )
110 {
111 }
112 
113 void gr_stub_unfilled_circle( int xc, int yc, int d, int resize_mode )
114 {
115 }
116 
117 void gr_stub_cleanup(int minimize)
118 {
119 }
120 
122 {
123 }
124 
125 void gr_stub_cross_fade(int bmap1, int bmap2, int x1, int y1, int x2, int y2, float pct, int resize_mode)
126 {
127 }
128 
129 void gr_stub_curve(int xc, int yc, int r, int direction, int resize_mode)
130 {
131 }
132 
134 {
135 }
136 
138 {
139 }
140 
142 {
143 }
144 
146 {
147 }
148 
150 {
151 }
152 
154 {
155 }
156 
157 void gr_stub_flash_alpha(int r, int g, int b, int a)
158 {
159 }
160 
161 void gr_stub_flash(int r, int g, int b)
162 {
163 }
164 
166 {
167 }
168 
169 void gr_stub_fog_set(int fog_mode, int r, int g, int b, float fog_near, float fog_far)
170 {
171 }
172 
174 {
175 }
176 
177 void gr_stub_get_region(int front, int w, int h, ubyte *data)
178 {
179 }
180 
181 void gr_stub_gradient(int x1,int y1,int x2,int y2, int resize_mode)
182 {
183 }
184 
185 void gr_stub_line(int x1,int y1,int x2,int y2, int resize_mode = GR_RESIZE_NONE)
186 {
187 }
188 
189 void gr_stub_modify_light(light* light, int idx, int priority)
190 {
191 }
192 
193 void gr_stub_pixel(int x, int y, int resize_mode)
194 {
195 }
196 
198 {
199 }
200 
202 {
203 }
204 
206 {
207 }
208 
210 {
211 }
212 
213 void gr_stub_push_scale_matrix(const vec3d *scale_factor)
214 {
215 }
216 
218 {
219 }
220 
221 void gr_stub_rect(int x, int y, int w, int h, int resize_mode)
222 {
223 }
224 
225 void gr_stub_render_buffer(int start, const vertex_buffer *bufferp, int texi, int flags)
226 {
227 }
228 
230 {
231 }
232 
234 {
235 }
236 
238 {
239 }
240 
241 void gr_stub_save_mouse_area(int x, int y, int w, int h)
242 {
243 }
244 
245 void gr_stub_scaler(vertex *va, vertex *vb, bool bw_bitmap )
246 {
247 }
248 
250 {
251 }
252 
254 {
255 }
256 
257 void gr_stub_update_buffer_object(int handle, uint size, void* data)
258 {
259 
260 }
261 
263 {
264 
265 }
266 
268 {
269 
270 }
271 
273 {
274  return -1;
275 }
276 
277 void gr_stub_render_stream_buffer(int buffer_handle, int offset, int n_verts, int flags)
278 {
279 }
280 
281 void gr_stub_set_clear_color(int r, int g, int b)
282 {
283 }
284 
285 void gr_stub_set_clip(int x, int y, int w, int h, int resize_mode)
286 {
287 }
288 
289 int gr_stub_set_cull(int cull)
290 {
291  return 0;
292 }
293 
295 {
296  return 0;
297 }
298 
299 void gr_stub_set_gamma(float gamma)
300 {
301 }
302 
303 void gr_stub_set_lighting(bool set, bool state)
304 {
305 }
306 
308 {
309 }
310 
312 {
313 }
314 
315 void gr_stub_set_palette(const ubyte *new_palette, int is_alphacolor)
316 {
317 }
318 
319 void gr_stub_set_projection_matrix(float fov, float aspect, float z_near, float z_far)
320 {
321 }
322 
324 {
325 }
326 
328 {
329 }
330 
332 {
333 }
334 
336 {
337 }
338 
339 void gr_stub_start_instance_angles(const vec3d *pos, const angles *rotation)
340 {
341 }
342 
343 void gr_stub_start_instance_matrix(const vec3d *offset, const matrix *rotation)
344 {
345 }
346 
347 void gr_stub_string(int sx, int sy, const char *s, int resize_mode = GR_RESIZE_NONE)
348 {
349 }
350 
352 {
353 }
354 
356 {
357 }
358 
359 void gr_stub_tmapper( int nverts, vertex **verts, uint flags )
360 {
361 }
362 
363 void gr_stub_render( int nverts, vertex *verts, uint flags )
364 {
365 }
366 
367 void gr_stub_render_effect( int nverts, vertex *verts, float *radius_list, uint flag)
368 {
369 }
370 
371 void gr_stub_translate_texture_matrix(int unit, const vec3d *shift)
372 {
373 }
374 
376 {
377 }
378 
380 {
381 }
382 
384 {
385  return 0;
386 }
387 
389 {
390 }
391 
393 {
394  return 0;
395 }
396 
397 /*void gr_stub_shade(int x,int y,int w,int h)
398 {
399 }*/
400 
401 void gr_stub_post_process_set_effect(const char *name, int x)
402 {
403 }
404 
406 {
407 }
408 
410 {
411 }
412 
414 {
415 }
416 
418 {
419 }
420 
422 {
423 }
424 
426 {
427 }
428 
430 {
431 }
432 
434 {
435 }
436 
438 {
439 }
440 
442 {
443 }
444 
446 {
447 }
448 
449 void gr_stub_set_ambient_light(int red, int green, int blue)
450 {
451 }
452 
453 void gr_stub_set_texture_panning(float u, float v, bool enable)
454 {
455 }
456 
458 {
459 }
460 
462 {
463 }
464 
465 void gr_stub_draw_htl_sphere(float rad)
466 {
467 }
468 
470 {
471 }
472 
474 {
475 }
476 
477 void gr_stub_update_texture(int bitmap_handle, int bpp, const ubyte *data, int width, int height)
478 {
479 }
480 
481 void gr_stub_get_bitmap_from_texture(void* data_out, int bitmap_num)
482 {
483 
484 }
485 
486 int gr_stub_bm_make_render_target(int n, int *width, int *height, ubyte *bpp, int *mm_lvl, int flags)
487 {
488  return 0;
489 }
490 
492 {
493  return 0;
494 }
495 
497 {
498 }
499 
501 {
502 }
503 
505 {
506 }
507 
509 {
510 }
511 
512 bool gr_stub_bm_data(int n, bitmap* bm)
513 {
514  return true;
515 }
516 
517 int gr_stub_maybe_create_shader(shader_type shader_t, unsigned int flags) {
518  return -1;
519 }
520 
521 void gr_stub_set_animated_effect(int effect, float timer)
522 {
523 
524 }
525 
526 void gr_stub_set_team_color(const team_color *colors) {
527 }
528 
529 void gr_stub_shadow_map_start(const matrix4 *shadow_view_matrix, const matrix* light_matrix)
530 {
531 }
532 
534 {
535 }
536 
538 {
539  if (gr_screen.res != GR_640) {
540  gr_screen.res = GR_640;
541  gr_screen.max_w = 640;
542  gr_screen.max_h = 480;
543  }
544 
545  Gr_red.bits = 8;
546  Gr_red.shift = 16;
547  Gr_red.scale = 1;
548  Gr_red.mask = 0xff0000;
549  Gr_t_red = Gr_red;
550 
551  Gr_green.bits = 8;
552  Gr_green.shift = 8;
553  Gr_green.scale = 1;
554  Gr_green.mask = 0xff00;
556 
557  Gr_blue.bits = 8;
558  Gr_blue.shift = 0;
559  Gr_blue.scale = 1;
560  Gr_blue.mask = 0xff;
561  Gr_t_blue = Gr_blue;
562 
563  // function pointers...
567 
569 // gr_screen.gf_bitmap = gr_stub_bitmap;
573 
574 // gr_screen.gf_rect = gr_stub_rect;
575 // gr_screen.gf_shade = gr_stub_shade;
580 
588 
590 
593 
596 
600 
603 
605 
609 
611 
613 
614  // UnknownPlayer : Don't recognize this - MAY NEED DEBUGGING
616 
617  // now for the bitmap functions
625 
628 
630 
632 
634 
636 
640 
645 
652 
656 
659 
663 
670 
673 
677 
681 
685 
688 
691 
694 
697 
702 
704 
706 
709 
712 
714 
716 
718 
720 
723  return true;
724 }
int gr_stub_set_color_buffer(int mode)
Definition: grstub.cpp:294
int bits
Definition: grinternal.h:28
void gr_stub_flash_alpha(int r, int g, int b, int a)
Definition: grstub.cpp:157
void gr_stub_render(int nverts, vertex *verts, uint flags)
Definition: grstub.cpp:363
void gr_stub_render_effect(int nverts, vertex *verts, float *radius_list, uint flag)
Definition: grstub.cpp:367
void(* gf_aaline)(vertex *v1, vertex *v2)
Definition: 2d.h:451
void gr_stub_set_clip(int x, int y, int w, int h, int resize_mode)
Definition: grstub.cpp:285
void gr_stub_end_projection_matrix()
Definition: grstub.cpp:149
uint gr_stub_lock()
Definition: grstub.cpp:20
void gr_stub_scaler(vertex *va, vertex *vb, bool bw_bitmap)
Definition: grstub.cpp:245
void gr_stub_scene_texture_begin()
Definition: grstub.cpp:425
void gr_stub_preload_init()
Definition: grstub.cpp:205
void(* gf_set_proj_matrix)(float, float, float, float)
Definition: 2d.h:567
void gr_stub_pop_texture_matrix(int unit)
Definition: grstub.cpp:201
void(* gf_destroy_light)(int)
Definition: 2d.h:582
void gr_stub_bitmap(int x, int y)
Definition: grstub.cpp:97
void gr_stub_shadow_map_end()
Definition: grstub.cpp:533
void(* gf_fog_set)(int fog_mode, int r, int g, int b, float fog_near, float fog_far)
Definition: 2d.h:516
void(* gf_bm_create)(int n)
Definition: 2d.h:538
int gr_stub_set_cull(int cull)
Definition: grstub.cpp:289
GLfloat GLfloat GLfloat GLfloat h
Definition: Glext.h:7280
void gr_stub_free_screen(int id)
Definition: grstub.cpp:173
void(* gf_set_palette)(const ubyte *new_pal, int restrict_alphacolor)
Definition: 2d.h:412
void(* gf_bm_free_data)(int n, bool release)
Definition: 2d.h:537
color_gun Gr_t_red
Definition: 2d.cpp:49
void(* gf_push_texture_matrix)(int unit)
Definition: 2d.h:547
void gr_stub_draw_htl_sphere(float rad)
Definition: grstub.cpp:465
void(* gf_free_screen)(int id)
Definition: 2d.h:502
void(* gf_shadow_map_start)(const matrix4 *shadow_view_matrix, const matrix *light_matrix)
Definition: 2d.h:634
int shift
Definition: grinternal.h:29
void gr_stub_center_alpha(int type)
Definition: grstub.cpp:101
void(* gf_sphere_htl)(float rad)
Definition: 2d.h:621
void gr_stub_post_process_begin()
Definition: grstub.cpp:417
void gr_stub_destroy_light(int idx)
Definition: grstub.cpp:137
void gr_stub_set_tex_env_scale(float scale)
Definition: grstub.cpp:323
void(* gf_aabitmap_ex)(int x, int y, int w, int h, int sx, int sy, int resize_mode, bool mirror)
Definition: 2d.h:431
void(* gf_stencil_clear)()
Definition: 2d.h:491
void(* gf_reset_lighting)()
Definition: 2d.h:584
void gr_stub_update_buffer_object(int handle, uint size, void *data)
Definition: grstub.cpp:257
void(* gf_center_alpha)(int)
Definition: 2d.h:605
void(* gf_get_bitmap_from_texture)(void *data_out, int bitmap_num)
Definition: 2d.h:632
void(* gf_render_effect)(int nv, vertex *verts, float *radius_list, uint flags)
Definition: 2d.h:467
void(* gf_shadow_map_end)()
Definition: 2d.h:635
void(* gf_line)(int x1, int y1, int x2, int y2, int resize_mode)
Definition: 2d.h:444
void gr_stub_zbuffer_clear(int mode)
Definition: grstub.cpp:379
int(* gf_bm_set_render_target)(int n, int face)
Definition: 2d.h:544
void gr_stub_flip()
Definition: grstub.cpp:165
Definition: pstypes.h:88
int gr_stub_make_light(light *light, int idx, int priority)
Definition: grstub.cpp:43
void(* gf_set_animated_effect)(int effect, float timer)
Definition: 2d.h:625
void gr_stub_deferred_lighting_finish()
Definition: grstub.cpp:445
int res
Definition: 2d.h:370
void(* gf_flash)(int r, int g, int b)
Definition: 2d.h:415
void(* gf_set_view_matrix)(const vec3d *, const matrix *)
Definition: 2d.h:570
void gr_stub_tmapper(int nverts, vertex **verts, uint flags)
Definition: grstub.cpp:359
void(* gf_deferred_lighting_end)()
Definition: 2d.h:596
void(* gf_post_process_set_effect)(const char *, int)
Definition: 2d.h:588
void(* gf_scene_texture_begin)()
Definition: 2d.h:599
GLfloat bias
Definition: Glext.h:7380
void gr_stub_update_transform_buffer(void *data, uint size)
Definition: grstub.cpp:262
int(* gf_set_cull)(int cull)
Definition: 2d.h:519
void gr_stub_circle(int xc, int yc, int d, int resize_mode)
Definition: grstub.cpp:109
float factor
Definition: lua.cpp:440
enum_h * u
Definition: lua.cpp:12649
bool(* gf_pack_buffer)(const int buffer_id, vertex_buffer *vb)
Definition: 2d.h:553
GLenum mode
Definition: Glext.h:5794
void gr_stub_cross_fade(int bmap1, int bmap2, int x1, int y1, int x2, int y2, float pct, int resize_mode)
Definition: grstub.cpp:125
int(* gf_maybe_create_shader)(shader_type type, unsigned int flags)
Definition: 2d.h:623
int(* gf_set_color_buffer)(int mode)
Definition: 2d.h:522
void gr_stub_aaline(vertex *v1, vertex *v2)
Definition: grstub.cpp:85
void gr_stub_post_process_save_zbuffer()
Definition: grstub.cpp:409
hull_check orient
Definition: lua.cpp:5049
void gr_stub_push_texture_matrix(int unit)
Definition: grstub.cpp:217
GLenum GLenum GLenum GLenum GLenum scale
Definition: Glext.h:8503
void gr_stub_set_buffer(int idx)
Definition: grstub.cpp:253
GLfloat GLfloat GLfloat v2
Definition: Glext.h:5640
GLsizeiptr size
Definition: Glext.h:5496
bool(* gf_bm_data)(int n, bitmap *bm)
Definition: 2d.h:541
void(* gf_draw_line_list)(const colored_vector *lines, int num)
Definition: 2d.h:616
int(* gf_stencil_set)(int mode)
Definition: 2d.h:488
void(* gf_bm_page_in_start)()
Definition: 2d.h:540
void gr_stub_modify_light(light *light, int idx, int priority)
Definition: grstub.cpp:189
#define GR_RESIZE_NONE
Definition: 2d.h:681
void(* gf_flip)()
Definition: 2d.h:409
void(* gf_pixel)(int x, int y, int resize_mode)
Definition: 2d.h:453
void(* gf_set_gamma)(float gamma)
Definition: 2d.h:505
void gr_stub_activate(int active)
Definition: grstub.cpp:89
int(* gf_create_buffer)()
Definition: 2d.h:552
void(* gf_translate_texture_matrix)(int unit, const vec3d *shift)
Definition: 2d.h:546
void gr_stub_post_process_blur_shadow_map()
Definition: grstub.cpp:413
GLenum type
Definition: Gl.h:1492
void gr_stub_draw_line_list(const colored_vector *lines, int num)
Definition: grstub.cpp:469
GLint GLsizei width
Definition: Gl.h:1505
void gr_stub_push_scale_matrix(const vec3d *scale_factor)
Definition: grstub.cpp:213
void(* gf_circle)(int x, int y, int r, int resize_mode)
Definition: 2d.h:438
void gr_stub_save_mouse_area(int x, int y, int w, int h)
Definition: grstub.cpp:241
void(* gf_set_clip)(int x, int y, int w, int h, int resize_mode)
Definition: 2d.h:419
GLenum GLuint GLint GLenum face
Definition: Glext.h:6586
int gr_stub_bm_make_render_target(int n, int *width, int *height, ubyte *bpp, int *mm_lvl, int flags)
Definition: grstub.cpp:486
void gr_stub_zbias_stub(int bias)
Definition: grstub.cpp:375
void(* gf_post_process_set_defaults)()
Definition: 2d.h:589
void release()
Definition: 2d.h:326
int gr_stub_stencil_set(int mode)
Definition: grstub.cpp:383
void gr_stub_start_instance_matrix(const vec3d *offset, const matrix *rotation)
Definition: grstub.cpp:343
void(* gf_unfilled_circle)(int x, int y, int r, int resize_mode)
Definition: 2d.h:439
void gr_stub_bm_create(int n)
Definition: grstub.cpp:496
GLintptr offset
Definition: Glext.h:5497
void(* gf_destroy_buffer)(int)
Definition: 2d.h:555
void gr_stub_translate_texture_matrix(int unit, const vec3d *shift)
Definition: grstub.cpp:371
GLdouble GLdouble GLdouble r
Definition: Glext.h:5337
int(* gf_alpha_mask_set)(int mode, float alpha)
Definition: 2d.h:493
void(* gf_start_clip_plane)()
Definition: 2d.h:608
int gr_stub_tcache_set(int bitmap_id, int bitmap_type, float *u_scale, float *v_scale, int tex_unit=0)
Definition: grstub.cpp:58
unsigned int uint
Definition: pstypes.h:64
GLboolean GLboolean g
Definition: Glext.h:5781
void gr_stub_reset_clip()
Definition: grstub.cpp:229
void gr_stub_post_process_set_effect(const char *name, int x)
Definition: grstub.cpp:401
void gr_stub_curve(int xc, int yc, int r, int direction, int resize_mode)
Definition: grstub.cpp:129
void(* gf_set_light_factor)(float)
Definition: 2d.h:604
int gr_stub_alpha_mask_set(int mode, float alpha)
Definition: grstub.cpp:392
GLboolean GLboolean GLboolean GLboolean a
Definition: Glext.h:5781
GLclampf GLclampf blue
Definition: Glext.h:5177
void gr_stub_set_clear_color(int r, int g, int b)
Definition: grstub.cpp:281
void gr_stub_set_light(light *light)
Definition: grstub.cpp:311
void gr_stub_set_additive_tex_env()
Definition: grstub.cpp:249
int gr_stub_zbuffer_get()
Definition: grstub.cpp:63
char * filename
void(* gf_set_transform_buffer_offset)(int offset)
Definition: 2d.h:561
int mask
Definition: grinternal.h:31
void(* gf_set_texture_panning)(float u, float v, bool enable)
Definition: 2d.h:614
void gr_stub_aabitmap(int x, int y, int resize_mode, bool mirror)
Definition: grstub.cpp:81
void(* gf_tmapper)(int nv, vertex *verts[], uint flags)
Definition: 2d.h:462
void(* gf_end_view_matrix)()
Definition: 2d.h:571
int(* gf_bm_make_render_target)(int n, int *width, int *height, ubyte *bpp, int *mm_lvl, int flags)
Definition: 2d.h:543
void(* gf_update_texture)(int bitmap_handle, int bpp, const ubyte *data, int width, int height)
Definition: 2d.h:631
void(* gf_restore_screen)(int id)
Definition: 2d.h:499
void gr_stub_stuff_secondary_color(vertex *v, ubyte fr, ubyte fg, ubyte fb)
Definition: grstub.cpp:355
void gr_stub_set_light_factor(float factor)
Definition: grstub.cpp:307
#define GR_640
Definition: 2d.h:652
int(* gf_zbuffer_set)(int mode)
Definition: 2d.h:482
void(* gf_update_transform_buffer)(void *data, uint size)
Definition: 2d.h:560
void gr_stub_bm_page_in_start()
Definition: grstub.cpp:508
int gr_stub_zbuffer_set(int mode)
Definition: grstub.cpp:68
void gr_stub_set_team_color(const team_color *colors)
Definition: grstub.cpp:526
void(* gf_end_clip_plane)()
Definition: 2d.h:609
Definition: bmpman.h:101
void(* gf_clear_states)()
Definition: 2d.h:627
void gr_stub_set_animated_effect(int effect, float timer)
Definition: grstub.cpp:521
GLdouble s
Definition: Glext.h:5321
bool gr_stub_bm_data(int n, bitmap *bm)
Definition: grstub.cpp:512
void gr_stub_set_texture_addressing(int mode)
Definition: grstub.cpp:327
void(* gf_start_angles_instance_matrix)(const vec3d *, const angles *)
Definition: 2d.h:577
void gr_stub_set_line_width(float width)
Definition: grstub.cpp:457
void gr_stub_cleanup(int minimize)
Definition: grstub.cpp:117
void(* gf_lighting)(bool, bool)
Definition: 2d.h:603
int(* gf_make_light)(light *, int, int)
Definition: 2d.h:580
void(* gf_bm_init)(int n)
Definition: 2d.h:539
int idx
Definition: multiui.cpp:761
int(* gf_preload)(int bitmap_num, int is_aabitmap)
Definition: 2d.h:531
void gr_stub_set_projection_matrix(float fov, float aspect, float z_near, float z_far)
Definition: grstub.cpp:319
GLclampf green
Definition: Glext.h:5177
void(* gf_post_process_begin)()
Definition: 2d.h:591
int gr_stub_maybe_create_shader(shader_type shader_t, unsigned int flags)
Definition: grstub.cpp:517
void(* gf_post_process_save_zbuffer)()
Definition: 2d.h:593
int scale
Definition: grinternal.h:30
bool gr_stub_pack_buffer(const int buffer_id, vertex_buffer *vb)
Definition: grstub.cpp:32
void(* gf_flash_alpha)(int r, int g, int b, int a)
Definition: 2d.h:416
void(* gf_scaler)(vertex *va, vertex *vb, bool bw_bitmap)
Definition: 2d.h:456
void(* gf_string)(int x, int y, const char *text, int resize_mode)
Definition: 2d.h:433
GLint GLint GLint GLint GLint x
Definition: Glext.h:5182
GLclampd n
Definition: Glext.h:7286
unsigned char ubyte
Definition: pstypes.h:62
void gr_stub_flash(int r, int g, int b)
Definition: grstub.cpp:161
void(* gf_set_line_width)(float width)
Definition: 2d.h:618
color_gun Gr_t_blue
Definition: 2d.cpp:49
void gr_stub_unfilled_circle(int xc, int yc, int d, int resize_mode)
Definition: grstub.cpp:113
void gr_stub_end_instance_matrix()
Definition: grstub.cpp:145
void(* gf_reset_clip)()
Definition: 2d.h:422
int max_w
Definition: 2d.h:360
GLuint start
Definition: Gl.h:1502
int gr_stub_bm_set_render_target(int n, int face)
Definition: grstub.cpp:491
GLfloat GLfloat v1
Definition: Glext.h:5639
void gr_stub_bm_init(int n)
Definition: grstub.cpp:504
GLbitfield flags
Definition: Glext.h:6722
Definition: 2d.h:109
void gr_stub_end_clip_plane()
Definition: grstub.cpp:141
shader_type
Definition: 2d.h:30
Definition: lighting.h:32
GLuint const GLchar * name
Definition: Glext.h:5608
void gr_stub_set_view_matrix(const vec3d *pos, const matrix *orient)
Definition: grstub.cpp:331
void(* gf_set_clear_color)(int r, int g, int b)
Definition: 2d.h:534
void gr_stub_end_view_matrix()
Definition: grstub.cpp:153
GLboolean enable
Definition: Glext.h:10591
void gr_stub_draw_htl_line(const vec3d *start, const vec3d *end)
Definition: grstub.cpp:461
void(* gf_line_htl)(const vec3d *start, const vec3d *end)
Definition: 2d.h:620
GLboolean GLboolean GLboolean b
Definition: Glext.h:5781
void gr_stub_set_lighting(bool set, bool state)
Definition: grstub.cpp:303
color_gun Gr_red
Definition: 2d.cpp:48
void(* gf_set_texture_addressing)(int)
Definition: 2d.h:550
GLuint GLuint num
Definition: Glext.h:9089
void(* gf_copy_effect_texture)()
Definition: 2d.h:601
int gr_stub_create_buffer()
Definition: grstub.cpp:26
void(* gf_scene_texture_end)()
Definition: 2d.h:600
void(* gf_pop_texture_matrix)(int unit)
Definition: 2d.h:548
void(* gf_set_fill_mode)(int)
Definition: 2d.h:613
void gr_stub_fog_set(int fog_mode, int r, int g, int b, float fog_near, float fog_far)
Definition: grstub.cpp:169
void gr_stub_clear()
Definition: grstub.cpp:121
GLint GLsizei GLsizei height
Definition: Gl.h:1505
void gr_stub_post_process_set_defaults()
Definition: grstub.cpp:405
bool(* gf_config_buffer)(const int buffer_id, vertex_buffer *vb, bool update_ibuffer_only)
Definition: 2d.h:554
void(* gf_post_process_end)()
Definition: 2d.h:592
GLubyte GLubyte GLubyte GLubyte w
Definition: Glext.h:5679
void gr_stub_deferred_lighting_end()
Definition: grstub.cpp:441
void(* gf_zbuffer_clear)(int use_zbuffer)
Definition: 2d.h:485
void(* gf_set_ambient_light)(int, int, int)
Definition: 2d.h:585
void(* gf_start_instance_matrix)(const vec3d *, const matrix *)
Definition: 2d.h:576
int gr_stub_create_stream_buffer()
Definition: grstub.cpp:272
void gr_stub_render_buffer(int start, const vertex_buffer *bufferp, int texi, int flags)
Definition: grstub.cpp:225
screen gr_screen
Definition: 2d.cpp:46
void gr_stub_bm_free_data(int n, bool release)
Definition: grstub.cpp:500
void gr_stub_render_stream_buffer(int buffer_handle, int offset, int n_verts, int flags)
Definition: grstub.cpp:277
void gr_stub_set_palette(const ubyte *new_palette, int is_alphacolor)
Definition: grstub.cpp:315
void gr_stub_pop_scale_matrix()
Definition: grstub.cpp:197
void(* gf_pop_scale_matrix)()
Definition: 2d.h:574
void(* gf_deferred_lighting_finish)()
Definition: 2d.h:597
void gr_stub_shadow_map_start(const matrix4 *shadow_view_matrix, const matrix *light_matrix)
Definition: grstub.cpp:529
void gr_stub_set_ambient_light(int red, int green, int blue)
Definition: grstub.cpp:449
void gr_stub_set_texture_panning(float u, float v, bool enable)
Definition: grstub.cpp:453
void gr_stub_destroy_buffer(int idx)
Definition: grstub.cpp:133
color_gun Gr_t_green
Definition: 2d.cpp:49
void gr_stub_rect(int x, int y, int w, int h, int resize_mode)
Definition: grstub.cpp:221
int max_h
Definition: 2d.h:360
void gr_stub_stencil_clear()
Definition: grstub.cpp:388
GLenum GLsizei GLenum GLenum const GLvoid * data
Definition: Gl.h:1509
void gr_stub_copy_effect_texture()
Definition: grstub.cpp:433
void gr_stub_string(int sx, int sy, const char *s, int resize_mode=GR_RESIZE_NONE)
Definition: grstub.cpp:347
void gr_stub_set_transform_buffer_offset(int offset)
Definition: grstub.cpp:267
color_gun Gr_green
Definition: 2d.cpp:48
void(* gf_set_light)(light *)
Definition: 2d.h:583
hull_check pos
Definition: lua.cpp:5050
int gr_stub_save_screen()
Definition: grstub.cpp:53
void gr_stub_set_gamma(float gamma)
Definition: grstub.cpp:299
void(* gf_push_scale_matrix)(const vec3d *)
Definition: 2d.h:573
float fov
Definition: lua.cpp:9155
void(* gf_cross_fade)(int bmap1, int bmap2, int x1, int y1, int x2, int y2, float pct, int resize_mode)
Definition: 2d.h:525
bool gr_stub_init()
Definition: grstub.cpp:537
void(* gf_zbias)(int zbias)
Definition: 2d.h:611
int(* gf_zbuffer_get)()
Definition: 2d.h:479
int(* gf_save_screen)()
Definition: 2d.h:496
void gr_stub_reset_lighting()
Definition: grstub.cpp:233
void(* gf_get_region)(int front, int w, int h, ubyte *data)
Definition: 2d.h:513
void(* gf_set_thrust_scale)(float)
Definition: 2d.h:606
void gr_stub_get_bitmap_from_texture(void *data_out, int bitmap_num)
Definition: grstub.cpp:481
void(* gf_clear)()
Definition: 2d.h:425
void(* gf_aabitmap)(int x, int y, int resize_mode, bool mirror)
Definition: 2d.h:430
void(* gf_set_team_color)(const team_color *colors)
Definition: 2d.h:629
void(* gf_end_instance_matrix)()
Definition: 2d.h:578
void gr_stub_restore_screen(int id)
Definition: grstub.cpp:237
void gr_stub_deferred_lighting_begin()
Definition: grstub.cpp:437
void gr_stub_get_region(int front, int w, int h, ubyte *data)
Definition: grstub.cpp:177
void(* gf_render_stream_buffer)(int buffer_handle, int offset, int n_verts, int flags)
Definition: 2d.h:564
void gr_stub_post_process_end()
Definition: grstub.cpp:421
void(* gf_deferred_lighting_begin)()
Definition: 2d.h:595
void gr_stub_gradient(int x1, int y1, int x2, int y2, int resize_mode)
Definition: grstub.cpp:181
void(* gf_end_proj_matrix)()
Definition: 2d.h:568
GLclampf GLclampf GLclampf alpha
Definition: Glext.h:5177
void gr_stub_pixel(int x, int y, int resize_mode)
Definition: grstub.cpp:193
void gr_stub_print_screen(const char *filename)
Definition: grstub.cpp:209
void(* gf_curve)(int x, int y, int r, int direction, int resize_mode)
Definition: 2d.h:441
void(* gf_set_buffer)(int)
Definition: 2d.h:556
void gr_stub_clear_states()
Definition: grstub.cpp:473
void gr_stub_stuff_fog_coord(vertex *v)
Definition: grstub.cpp:351
void(* gf_print_screen)(const char *filename)
Definition: 2d.h:470
void gr_stub_set_thrust_scale(float scale)
Definition: grstub.cpp:105
void gr_stub_start_instance_angles(const vec3d *pos, const angles *rotation)
Definition: grstub.cpp:339
void(* gf_render)(int nv, vertex *verts, uint flags)
Definition: 2d.h:465
void gr_set_fill_mode_stub(int mode)
Definition: grstub.cpp:73
void gr_stub_start_clip_plane()
Definition: grstub.cpp:335
void(* gf_bitmap_ex)(int x, int y, int w, int h, int sx, int sy, int resize_mode)
Definition: 2d.h:428
const GLdouble * v
Definition: Glext.h:5322
void gr_stub_scene_texture_end()
Definition: grstub.cpp:429
void(* gf_render_buffer)(int, const vertex_buffer *, int, int)
Definition: 2d.h:557
int(* gf_create_stream_buffer)()
Definition: 2d.h:563
GLuint GLuint end
Definition: Gl.h:1502
int gr_stub_preload(int bitmap_num, int is_aabitmap)
Definition: grstub.cpp:48
GLint y
Definition: Gl.h:1505
void gr_stub_line(int x1, int y1, int x2, int y2, int resize_mode=GR_RESIZE_NONE)
Definition: grstub.cpp:185
int(* gf_tcache_set)(int bitmap_id, int bitmap_type, float *u_scale, float *v_scale, int stage)
Definition: 2d.h:528
void gr_stub_aabitmap_ex(int x, int y, int w, int h, int sx, int sy, int resize_mode, bool mirror)
Definition: grstub.cpp:77
void(* gf_update_buffer_object)(int handle, uint size, void *data)
Definition: 2d.h:559
void gr_stub_bitmap_ex(int x, int y, int w, int h, int sx, int sy, int resize_mode)
Definition: grstub.cpp:93
void gr_stub_update_texture(int bitmap_handle, int bpp, const ubyte *data, int width, int height)
Definition: grstub.cpp:477
void(* gf_modify_light)(light *, int, int)
Definition: 2d.h:581
color_gun Gr_blue
Definition: 2d.cpp:48
bool gr_stub_config_buffer(const int buffer_id, vertex_buffer *vb, bool update_ibuffer_only)
Definition: grstub.cpp:38
void(* gf_gradient)(int x1, int y1, int x2, int y2, int resize_mode)
Definition: 2d.h:436