16 #define BMPMAN_INTERNAL
58 int gr_stub_tcache_set(
int bitmap_id,
int bitmap_type,
float *u_scale,
float *v_scale,
int tex_unit = 0)
125 void gr_stub_cross_fade(
int bmap1,
int bmap2,
int x1,
int y1,
int x2,
int y2,
float pct,
int resize_mode)
int gr_stub_set_color_buffer(int mode)
void gr_stub_flash_alpha(int r, int g, int b, int a)
void gr_stub_render(int nverts, vertex *verts, uint flags)
void gr_stub_render_effect(int nverts, vertex *verts, float *radius_list, uint flag)
void(* gf_aaline)(vertex *v1, vertex *v2)
void gr_stub_set_clip(int x, int y, int w, int h, int resize_mode)
void gr_stub_end_projection_matrix()
void gr_stub_scaler(vertex *va, vertex *vb, bool bw_bitmap)
void gr_stub_scene_texture_begin()
void gr_stub_preload_init()
void(* gf_set_proj_matrix)(float, float, float, float)
void gr_stub_pop_texture_matrix(int unit)
void(* gf_destroy_light)(int)
void gr_stub_bitmap(int x, int y)
void gr_stub_shadow_map_end()
void(* gf_fog_set)(int fog_mode, int r, int g, int b, float fog_near, float fog_far)
void(* gf_bm_create)(int n)
int gr_stub_set_cull(int cull)
GLfloat GLfloat GLfloat GLfloat h
void gr_stub_free_screen(int id)
void(* gf_set_palette)(const ubyte *new_pal, int restrict_alphacolor)
void(* gf_bm_free_data)(int n, bool release)
void(* gf_push_texture_matrix)(int unit)
void gr_stub_draw_htl_sphere(float rad)
void(* gf_free_screen)(int id)
void(* gf_shadow_map_start)(const matrix4 *shadow_view_matrix, const matrix *light_matrix)
void gr_stub_center_alpha(int type)
void(* gf_sphere_htl)(float rad)
void gr_stub_post_process_begin()
void gr_stub_destroy_light(int idx)
void gr_stub_set_tex_env_scale(float scale)
void(* gf_aabitmap_ex)(int x, int y, int w, int h, int sx, int sy, int resize_mode, bool mirror)
void(* gf_stencil_clear)()
void(* gf_reset_lighting)()
void gr_stub_update_buffer_object(int handle, uint size, void *data)
void(* gf_center_alpha)(int)
void(* gf_get_bitmap_from_texture)(void *data_out, int bitmap_num)
void(* gf_render_effect)(int nv, vertex *verts, float *radius_list, uint flags)
void(* gf_shadow_map_end)()
void(* gf_line)(int x1, int y1, int x2, int y2, int resize_mode)
void gr_stub_zbuffer_clear(int mode)
int(* gf_bm_set_render_target)(int n, int face)
int gr_stub_make_light(light *light, int idx, int priority)
void(* gf_set_animated_effect)(int effect, float timer)
void gr_stub_deferred_lighting_finish()
void(* gf_flash)(int r, int g, int b)
void(* gf_set_view_matrix)(const vec3d *, const matrix *)
void gr_stub_tmapper(int nverts, vertex **verts, uint flags)
void(* gf_deferred_lighting_end)()
void(* gf_post_process_set_effect)(const char *, int)
void(* gf_scene_texture_begin)()
void gr_stub_update_transform_buffer(void *data, uint size)
int(* gf_set_cull)(int cull)
void gr_stub_circle(int xc, int yc, int d, int resize_mode)
bool(* gf_pack_buffer)(const int buffer_id, vertex_buffer *vb)
void gr_stub_cross_fade(int bmap1, int bmap2, int x1, int y1, int x2, int y2, float pct, int resize_mode)
int(* gf_maybe_create_shader)(shader_type type, unsigned int flags)
int(* gf_set_color_buffer)(int mode)
void gr_stub_aaline(vertex *v1, vertex *v2)
void gr_stub_post_process_save_zbuffer()
void gr_stub_push_texture_matrix(int unit)
GLenum GLenum GLenum GLenum GLenum scale
void gr_stub_set_buffer(int idx)
GLfloat GLfloat GLfloat v2
bool(* gf_bm_data)(int n, bitmap *bm)
void(* gf_draw_line_list)(const colored_vector *lines, int num)
int(* gf_stencil_set)(int mode)
void(* gf_bm_page_in_start)()
void gr_stub_modify_light(light *light, int idx, int priority)
void(* gf_pixel)(int x, int y, int resize_mode)
void(* gf_set_gamma)(float gamma)
void gr_stub_activate(int active)
int(* gf_create_buffer)()
void(* gf_translate_texture_matrix)(int unit, const vec3d *shift)
void gr_stub_post_process_blur_shadow_map()
void gr_stub_draw_line_list(const colored_vector *lines, int num)
void gr_stub_push_scale_matrix(const vec3d *scale_factor)
void(* gf_circle)(int x, int y, int r, int resize_mode)
void gr_stub_save_mouse_area(int x, int y, int w, int h)
void(* gf_set_clip)(int x, int y, int w, int h, int resize_mode)
GLenum GLuint GLint GLenum face
int gr_stub_bm_make_render_target(int n, int *width, int *height, ubyte *bpp, int *mm_lvl, int flags)
void gr_stub_zbias_stub(int bias)
void(* gf_post_process_set_defaults)()
int gr_stub_stencil_set(int mode)
void gr_stub_start_instance_matrix(const vec3d *offset, const matrix *rotation)
void(* gf_unfilled_circle)(int x, int y, int r, int resize_mode)
void gr_stub_bm_create(int n)
void(* gf_destroy_buffer)(int)
void gr_stub_translate_texture_matrix(int unit, const vec3d *shift)
GLdouble GLdouble GLdouble r
int(* gf_alpha_mask_set)(int mode, float alpha)
void(* gf_start_clip_plane)()
int gr_stub_tcache_set(int bitmap_id, int bitmap_type, float *u_scale, float *v_scale, int tex_unit=0)
void gr_stub_reset_clip()
void gr_stub_post_process_set_effect(const char *name, int x)
void gr_stub_curve(int xc, int yc, int r, int direction, int resize_mode)
void(* gf_set_light_factor)(float)
int gr_stub_alpha_mask_set(int mode, float alpha)
GLboolean GLboolean GLboolean GLboolean a
void gr_stub_set_clear_color(int r, int g, int b)
void gr_stub_set_light(light *light)
void gr_stub_set_additive_tex_env()
int gr_stub_zbuffer_get()
void(* gf_set_transform_buffer_offset)(int offset)
void(* gf_set_texture_panning)(float u, float v, bool enable)
void gr_stub_aabitmap(int x, int y, int resize_mode, bool mirror)
void(* gf_tmapper)(int nv, vertex *verts[], uint flags)
void(* gf_end_view_matrix)()
int(* gf_bm_make_render_target)(int n, int *width, int *height, ubyte *bpp, int *mm_lvl, int flags)
void(* gf_update_texture)(int bitmap_handle, int bpp, const ubyte *data, int width, int height)
void(* gf_restore_screen)(int id)
void gr_stub_stuff_secondary_color(vertex *v, ubyte fr, ubyte fg, ubyte fb)
void gr_stub_set_light_factor(float factor)
int(* gf_zbuffer_set)(int mode)
void(* gf_update_transform_buffer)(void *data, uint size)
void gr_stub_bm_page_in_start()
int gr_stub_zbuffer_set(int mode)
void gr_stub_set_team_color(const team_color *colors)
void(* gf_end_clip_plane)()
void(* gf_clear_states)()
void gr_stub_set_animated_effect(int effect, float timer)
bool gr_stub_bm_data(int n, bitmap *bm)
void gr_stub_set_texture_addressing(int mode)
void(* gf_start_angles_instance_matrix)(const vec3d *, const angles *)
void gr_stub_set_line_width(float width)
void gr_stub_cleanup(int minimize)
void(* gf_lighting)(bool, bool)
int(* gf_make_light)(light *, int, int)
void(* gf_bm_init)(int n)
int(* gf_preload)(int bitmap_num, int is_aabitmap)
void gr_stub_set_projection_matrix(float fov, float aspect, float z_near, float z_far)
void(* gf_post_process_begin)()
int gr_stub_maybe_create_shader(shader_type shader_t, unsigned int flags)
void(* gf_post_process_save_zbuffer)()
bool gr_stub_pack_buffer(const int buffer_id, vertex_buffer *vb)
void(* gf_flash_alpha)(int r, int g, int b, int a)
void(* gf_scaler)(vertex *va, vertex *vb, bool bw_bitmap)
void(* gf_string)(int x, int y, const char *text, int resize_mode)
GLint GLint GLint GLint GLint x
void gr_stub_flash(int r, int g, int b)
void(* gf_set_line_width)(float width)
void gr_stub_unfilled_circle(int xc, int yc, int d, int resize_mode)
void gr_stub_end_instance_matrix()
int gr_stub_bm_set_render_target(int n, int face)
void gr_stub_bm_init(int n)
void gr_stub_end_clip_plane()
GLuint const GLchar * name
void gr_stub_set_view_matrix(const vec3d *pos, const matrix *orient)
void(* gf_set_clear_color)(int r, int g, int b)
void gr_stub_end_view_matrix()
void gr_stub_draw_htl_line(const vec3d *start, const vec3d *end)
void(* gf_line_htl)(const vec3d *start, const vec3d *end)
GLboolean GLboolean GLboolean b
void gr_stub_set_lighting(bool set, bool state)
void(* gf_set_texture_addressing)(int)
void(* gf_copy_effect_texture)()
int gr_stub_create_buffer()
void(* gf_scene_texture_end)()
void(* gf_pop_texture_matrix)(int unit)
void(* gf_set_fill_mode)(int)
void gr_stub_fog_set(int fog_mode, int r, int g, int b, float fog_near, float fog_far)
GLint GLsizei GLsizei height
void gr_stub_post_process_set_defaults()
bool(* gf_config_buffer)(const int buffer_id, vertex_buffer *vb, bool update_ibuffer_only)
void(* gf_post_process_end)()
GLubyte GLubyte GLubyte GLubyte w
void gr_stub_deferred_lighting_end()
void(* gf_zbuffer_clear)(int use_zbuffer)
void(* gf_set_ambient_light)(int, int, int)
void(* gf_start_instance_matrix)(const vec3d *, const matrix *)
int gr_stub_create_stream_buffer()
void gr_stub_render_buffer(int start, const vertex_buffer *bufferp, int texi, int flags)
void gr_stub_bm_free_data(int n, bool release)
void gr_stub_render_stream_buffer(int buffer_handle, int offset, int n_verts, int flags)
void gr_stub_set_palette(const ubyte *new_palette, int is_alphacolor)
void gr_stub_pop_scale_matrix()
void(* gf_pop_scale_matrix)()
void(* gf_deferred_lighting_finish)()
void gr_stub_shadow_map_start(const matrix4 *shadow_view_matrix, const matrix *light_matrix)
void gr_stub_set_ambient_light(int red, int green, int blue)
void gr_stub_set_texture_panning(float u, float v, bool enable)
void gr_stub_destroy_buffer(int idx)
void gr_stub_rect(int x, int y, int w, int h, int resize_mode)
void gr_stub_stencil_clear()
GLenum GLsizei GLenum GLenum const GLvoid * data
void gr_stub_copy_effect_texture()
void gr_stub_string(int sx, int sy, const char *s, int resize_mode=GR_RESIZE_NONE)
void gr_stub_set_transform_buffer_offset(int offset)
void(* gf_set_light)(light *)
int gr_stub_save_screen()
void gr_stub_set_gamma(float gamma)
void(* gf_push_scale_matrix)(const vec3d *)
void(* gf_cross_fade)(int bmap1, int bmap2, int x1, int y1, int x2, int y2, float pct, int resize_mode)
void(* gf_zbias)(int zbias)
void gr_stub_reset_lighting()
void(* gf_get_region)(int front, int w, int h, ubyte *data)
void(* gf_set_thrust_scale)(float)
void gr_stub_get_bitmap_from_texture(void *data_out, int bitmap_num)
void(* gf_aabitmap)(int x, int y, int resize_mode, bool mirror)
void(* gf_set_team_color)(const team_color *colors)
void(* gf_end_instance_matrix)()
void gr_stub_restore_screen(int id)
void gr_stub_deferred_lighting_begin()
void gr_stub_get_region(int front, int w, int h, ubyte *data)
void(* gf_render_stream_buffer)(int buffer_handle, int offset, int n_verts, int flags)
void gr_stub_post_process_end()
void(* gf_deferred_lighting_begin)()
void gr_stub_gradient(int x1, int y1, int x2, int y2, int resize_mode)
void(* gf_end_proj_matrix)()
GLclampf GLclampf GLclampf alpha
void gr_stub_pixel(int x, int y, int resize_mode)
void gr_stub_print_screen(const char *filename)
void(* gf_curve)(int x, int y, int r, int direction, int resize_mode)
void(* gf_set_buffer)(int)
void gr_stub_clear_states()
void gr_stub_stuff_fog_coord(vertex *v)
void(* gf_print_screen)(const char *filename)
void gr_stub_set_thrust_scale(float scale)
void gr_stub_start_instance_angles(const vec3d *pos, const angles *rotation)
void(* gf_render)(int nv, vertex *verts, uint flags)
void gr_set_fill_mode_stub(int mode)
void gr_stub_start_clip_plane()
void(* gf_bitmap_ex)(int x, int y, int w, int h, int sx, int sy, int resize_mode)
void gr_stub_scene_texture_end()
void(* gf_render_buffer)(int, const vertex_buffer *, int, int)
int(* gf_create_stream_buffer)()
int gr_stub_preload(int bitmap_num, int is_aabitmap)
void gr_stub_line(int x1, int y1, int x2, int y2, int resize_mode=GR_RESIZE_NONE)
int(* gf_tcache_set)(int bitmap_id, int bitmap_type, float *u_scale, float *v_scale, int stage)
void gr_stub_aabitmap_ex(int x, int y, int w, int h, int sx, int sy, int resize_mode, bool mirror)
void(* gf_update_buffer_object)(int handle, uint size, void *data)
void gr_stub_bitmap_ex(int x, int y, int w, int h, int sx, int sy, int resize_mode)
void gr_stub_update_texture(int bitmap_handle, int bpp, const ubyte *data, int width, int height)
void(* gf_modify_light)(light *, int, int)
bool gr_stub_config_buffer(const int buffer_id, vertex_buffer *vb, bool update_ibuffer_only)
void(* gf_gradient)(int x1, int y1, int x2, int y2, int resize_mode)