]> icculus.org git repositories - taylor/freespace2.git/blob - include/grgl1.h
rendering functions mostly done; more complete shader setup
[taylor/freespace2.git] / include / grgl1.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 #ifndef _GROPENGL1_H
10 #define _GROPENGL1_H
11
12 #include "pstypes.h"
13
14
15
16 extern PFNGLSECONDARYCOLORPOINTERPROC vglSecondaryColorPointer;
17
18 int opengl1_init();
19 void opengl1_cleanup();
20
21 void opengl1_set_state(gr_texture_source ts, gr_alpha_blend ab, gr_zbuffer_type zt);
22 void opengl1_set_texture_state(gr_texture_source ts);
23
24 void opengl1_tcache_init();
25 void opengl1_tcache_cleanup();
26 void opengl1_tcache_flush();
27 void opengl1_tcache_frame();
28 int opengl1_tcache_set(int bitmap_id, int bitmap_type, float *u_scale, float *v_scale, int fail_on_full = 0, int sx = -1, int sy = -1, int force = 0);
29
30 // gr_* pointer functions
31 void gr_opengl1_rect(int x,int y,int w,int h);
32 void gr_opengl1_shade(int x,int y,int w,int h);
33 void gr_opengl1_aabitmap_ex(int x,int y,int w,int h,int sx,int sy);
34 void gr_opengl1_aabitmap(int x, int y);
35 void gr_opengl1_string( int sx, int sy, const char *s );
36 void gr_opengl1_line(int x1,int y1,int x2,int y2);
37 void gr_opengl1_aaline(vertex *v1, vertex *v2);
38 void gr_opengl1_gradient(int x1,int y1,int x2,int y2);
39 void gr_opengl1_circle( int xc, int yc, int d );
40 void gr_opengl1_pixel(int x, int y);
41 void gr_opengl1_cross_fade(int bmap1, int bmap2, int x1, int y1, int x2, int y2, float pct);
42 void gr_opengl1_flash(int r, int g, int b);
43 void gr_opengl1_tmapper( int nverts, vertex **verts, uint flags );
44 void gr_opengl1_scaler(vertex *va, vertex *vb );
45 void gr_opengl1_save_mouse_area(int x, int y, int w, int h);
46 void gr_opengl1_set_gamma(float gamma);
47 void gr_opengl1_preload_init();
48 int gr_opengl1_preload(int bitmap_num, int is_aabitmap);
49 void gr_opengl1_flip();
50 void gr_opengl1_set_clip(int x, int y, int w, int h);
51 void gr_opengl1_fog_set(int fog_mode, int r, int g, int b, float fog_near, float fog_far);
52 void gr_opengl1_zbuffer_clear(int mode);
53 void gr_opengl1_fade_in(int instantaneous);
54 void gr_opengl1_fade_out(int instantaneous);
55 void gr_opengl1_get_region(int front, int w, int h, ubyte *data);
56 void gr_opengl1_save_mouse_area(int x, int y, int w, int h);
57 int gr_opengl1_save_screen();
58 void gr_opengl1_restore_screen(int id);
59 void gr_opengl1_free_screen(int id);
60 void gr_opengl1_dump_frame_start(int first_frame, int frames_between_dumps);
61 void gr_opengl1_dump_frame_stop();
62 void gr_opengl1_dump_frame();
63 void gr_opengl1_set_viewport(int width, int height);
64 void gr_opengl1_release_texture(int handle);
65
66 #endif  // _GROPENGL1_H