FS2_Open
Open source remastering of the Freespace 2 engine
gropengldraw.h File Reference

Go to the source code of this file.

Functions

void gr_opengl_aabitmap_ex (int x, int y, int w, int h, int sx, int sy, int resize_mode, bool mirror)
 
void gr_opengl_aabitmap (int x, int y, int resize_mode, bool mirror)
 
void gr_opengl_string (int sx, int sy, const char *s, int resize_mode=GR_RESIZE_FULL)
 
void gr_opengl_line (int x1, int y1, int x2, int y2, int resize_mode)
 
void gr_opengl_aaline (vertex *v1, vertex *v2)
 
void gr_opengl_pixel (int x, int y, int resize_mode)
 
void gr_opengl_gradient (int x1, int y1, int x2, int y2, int resize_mode)
 
void gr_opengl_circle (int xc, int yc, int d, int resize_mode)
 
void gr_opengl_unfilled_circle (int xc, int yc, int d, int resize_mode)
 
void gr_opengl_arc (int xc, int yc, float r, float angle_start, float angle_end, bool fill, int resize_mode)
 
void gr_opengl_curve (int xc, int yc, int r, int direction, int resize_mode)
 
void gr_opengl_scaler (vertex *va, vertex *vb, bool bw_bitmap)
 
void gr_opengl_cross_fade (int bmap1, int bmap2, int x1, int y1, int x2, int y2, float pct, int resize_mode)
 
void gr_opengl_shade (int x, int y, int w, int h, int resize_mode)
 
void gr_opengl_flash (int r, int g, int b)
 
void gr_opengl_flash_alpha (int r, int g, int b, int a)
 
void gr_opengl_tmapper (int nverts, vertex **verts, uint flags)
 
void gr_opengl_render (int nverts, vertex *verts, uint flags)
 
void gr_opengl_render_effect (int nverts, vertex *verts, float *radius_list, uint flags)
 
void gr_opengl_bitmap_ex (int x, int y, int w, int h, int sx, int sy, int resize_mode)
 
void gr_opengl_update_distortion ()
 
void opengl_set_spec_mapping (int tmap_type, float *u_scale, float *v_scale, int stage=0)
 
void opengl_reset_spec_mapping ()
 
void gr_opengl_line_htl (const vec3d *start, const vec3d *end)
 
void gr_opengl_sphere_htl (float rad)
 
void gr_opengl_deferred_light_sphere_init (int rings, int segments)
 
void gr_opengl_draw_deferred_light_sphere (const vec3d *position, float rad, bool clearStencil)
 
void gr_opengl_deferred_light_cylinder_init (int segments)
 
void gr_opengl_draw_deferred_light_cylinder (const vec3d *position, const matrix *orient, float rad, float length, bool clearStencil)
 
void gr_opengl_draw_line_list (const colored_vector *lines, int num)
 
void gr_opengl_shadow_map_start (const matrix4 *shadow_view_matrix, const matrix *light_orient)
 
void gr_opengl_shadow_map_end ()
 
void opengl_setup_scene_textures ()
 
void opengl_scene_texture_shutdown ()
 
void gr_opengl_scene_texture_begin ()
 
void gr_opengl_scene_texture_end ()
 
void gr_opengl_copy_effect_texture ()
 
void opengl_clear_deferred_buffers ()
 
void gr_opengl_deferred_lighting_begin ()
 
void gr_opengl_deferred_lighting_end ()
 
void gr_opengl_deferred_lighting_finish ()
 
void opengl_bind_vertex_layout (vertex_layout &layout)
 
void opengl_draw_textured_quad_instanced (GLfloat x1, GLfloat y1, GLfloat u1, GLfloat v1, GLfloat x2, GLfloat y2, GLfloat u2, GLfloat v2, int count)
 
void opengl_draw_textured_quad (GLfloat x1, GLfloat y1, GLfloat u1, GLfloat v1, GLfloat x2, GLfloat y2, GLfloat u2, GLfloat v2)
 
void opengl_draw_coloured_quad (GLint x1, GLint y1, GLint x2, GLint y2)
 
void opengl_draw_coloured_quad (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
 

Variables

int Scene_texture_initialized
 
GLuint Scene_color_texture
 
GLuint Scene_luminance_texture
 
GLuint Scene_effect_texture
 
int Scene_texture_width
 
int Scene_texture_height
 
float Scene_texture_u_scale
 
float Scene_texture_v_scale
 
bool Deferred_lighting
 
bool Use_Shaders_for_effect_rendering
 

Function Documentation

void gr_opengl_aabitmap ( int  x,
int  y,
int  resize_mode,
bool  mirror 
)

Definition at line 367 of file gropengldraw.cpp.

void gr_opengl_aabitmap_ex ( int  x,
int  y,
int  w,
int  h,
int  sx,
int  sy,
int  resize_mode,
bool  mirror 
)

Definition at line 249 of file gropengldraw.cpp.

void gr_opengl_aaline ( vertex v1,
vertex v2 
)

Definition at line 792 of file gropengldraw.cpp.

void gr_opengl_arc ( int  xc,
int  yc,
float  r,
float  angle_start,
float  angle_end,
bool  fill,
int  resize_mode 
)

Definition at line 1035 of file gropengldraw.cpp.

void gr_opengl_bitmap_ex ( int  x,
int  y,
int  w,
int  h,
int  sx,
int  sy,
int  resize_mode 
)

Definition at line 2089 of file gropengldraw.cpp.

void gr_opengl_circle ( int  xc,
int  yc,
int  d,
int  resize_mode 
)

Definition at line 942 of file gropengldraw.cpp.

void gr_opengl_copy_effect_texture ( )

Definition at line 3025 of file gropengldraw.cpp.

void gr_opengl_cross_fade ( int  bmap1,
int  bmap2,
int  x1,
int  y1,
int  x2,
int  y2,
float  pct,
int  resize_mode 
)

Definition at line 1949 of file gropengldraw.cpp.

void gr_opengl_curve ( int  xc,
int  yc,
int  r,
int  direction,
int  resize_mode 
)

Definition at line 1162 of file gropengldraw.cpp.

void gr_opengl_deferred_light_cylinder_init ( int  segments)

Definition at line 2395 of file gropengldraw.cpp.

void gr_opengl_deferred_light_sphere_init ( int  rings,
int  segments 
)

Definition at line 2284 of file gropengldraw.cpp.

void gr_opengl_deferred_lighting_begin ( )

Definition at line 3057 of file gropengldraw.cpp.

void gr_opengl_deferred_lighting_end ( )

Definition at line 3068 of file gropengldraw.cpp.

void gr_opengl_deferred_lighting_finish ( )

Definition at line 3083 of file gropengldraw.cpp.

void gr_opengl_draw_deferred_light_cylinder ( const vec3d position,
const matrix orient,
float  rad,
float  length,
bool  clearStencil 
)
void gr_opengl_draw_deferred_light_sphere ( const vec3d position,
float  rad,
bool  clearStencil 
)
void gr_opengl_draw_line_list ( const colored_vector lines,
int  num 
)

Definition at line 2527 of file gropengldraw.cpp.

void gr_opengl_flash ( int  r,
int  g,
int  b 
)

Definition at line 1990 of file gropengldraw.cpp.

void gr_opengl_flash_alpha ( int  r,
int  g,
int  b,
int  a 
)

Definition at line 2014 of file gropengldraw.cpp.

void gr_opengl_gradient ( int  x1,
int  y1,
int  x2,
int  y2,
int  resize_mode 
)

Definition at line 878 of file gropengldraw.cpp.

void gr_opengl_line ( int  x1,
int  y1,
int  x2,
int  y2,
int  resize_mode 
)

Definition at line 660 of file gropengldraw.cpp.

void gr_opengl_line_htl ( const vec3d start,
const vec3d end 
)

Definition at line 754 of file gropengldraw.cpp.

void gr_opengl_pixel ( int  x,
int  y,
int  resize_mode 
)

Definition at line 176 of file gropengldraw.cpp.

void gr_opengl_render ( int  nverts,
vertex verts,
uint  flags 
)

Definition at line 1799 of file gropengldraw.cpp.

void gr_opengl_render_effect ( int  nverts,
vertex verts,
float radius_list,
uint  flags 
)

Definition at line 1719 of file gropengldraw.cpp.

void gr_opengl_scaler ( vertex va,
vertex vb,
bool  bw_bitmap 
)

Definition at line 1811 of file gropengldraw.cpp.

void gr_opengl_scene_texture_begin ( )

Definition at line 2876 of file gropengldraw.cpp.

void gr_opengl_scene_texture_end ( )

Definition at line 2921 of file gropengldraw.cpp.

void gr_opengl_shade ( int  x,
int  y,
int  w,
int  h,
int  resize_mode 
)

Definition at line 1958 of file gropengldraw.cpp.

void gr_opengl_shadow_map_end ( )

Definition at line 1907 of file gropengltnl.cpp.

void gr_opengl_shadow_map_start ( const matrix4 shadow_view_matrix,
const matrix light_orient 
)

Definition at line 1877 of file gropengltnl.cpp.

void gr_opengl_sphere_htl ( float  rad)

Definition at line 2243 of file gropengldraw.cpp.

void gr_opengl_string ( int  sx,
int  sy,
const char *  s,
int  resize_mode = GR_RESIZE_FULL 
)

Definition at line 655 of file gropengldraw.cpp.

void gr_opengl_tmapper ( int  nverts,
vertex **  verts,
uint  flags 
)

Definition at line 1564 of file gropengldraw.cpp.

void gr_opengl_unfilled_circle ( int  xc,
int  yc,
int  d,
int  resize_mode 
)

Definition at line 947 of file gropengldraw.cpp.

void gr_opengl_update_distortion ( )

Definition at line 3260 of file gropengldraw.cpp.

void opengl_bind_vertex_layout ( vertex_layout layout)

Definition at line 163 of file gropengldraw.cpp.

void opengl_clear_deferred_buffers ( )

Definition at line 3036 of file gropengldraw.cpp.

void opengl_draw_coloured_quad ( GLint  x1,
GLint  y1,
GLint  x2,
GLint  y2 
)
inline

Definition at line 116 of file gropengldraw.h.

void opengl_draw_coloured_quad ( GLfloat  x1,
GLfloat  y1,
GLfloat  x2,
GLfloat  y2 
)
inline

Definition at line 136 of file gropengldraw.h.

void opengl_draw_textured_quad ( GLfloat  x1,
GLfloat  y1,
GLfloat  u1,
GLfloat  v1,
GLfloat  x2,
GLfloat  y2,
GLfloat  u2,
GLfloat  v2 
)
inline

Definition at line 93 of file gropengldraw.h.

void opengl_draw_textured_quad_instanced ( GLfloat  x1,
GLfloat  y1,
GLfloat  u1,
GLfloat  v1,
GLfloat  x2,
GLfloat  y2,
GLfloat  u2,
GLfloat  v2,
int  count 
)
inline

Definition at line 68 of file gropengldraw.h.

void opengl_reset_spec_mapping ( )
void opengl_scene_texture_shutdown ( )

Definition at line 2821 of file gropengldraw.cpp.

void opengl_set_spec_mapping ( int  tmap_type,
float u_scale,
float v_scale,
int  stage = 0 
)
void opengl_setup_scene_textures ( )

Definition at line 2534 of file gropengldraw.cpp.

Variable Documentation

bool Deferred_lighting

Definition at line 52 of file gropengldraw.cpp.

GLuint Scene_color_texture

Definition at line 35 of file gropengldraw.cpp.

GLuint Scene_effect_texture

Definition at line 40 of file gropengldraw.cpp.

GLuint Scene_luminance_texture

Definition at line 39 of file gropengldraw.cpp.

int Scene_texture_height

Definition at line 55 of file gropengldraw.cpp.

int Scene_texture_initialized

Definition at line 49 of file gropengldraw.cpp.

float Scene_texture_u_scale

Definition at line 57 of file gropengldraw.cpp.

float Scene_texture_v_scale

Definition at line 58 of file gropengldraw.cpp.

int Scene_texture_width

Definition at line 54 of file gropengldraw.cpp.

bool Use_Shaders_for_effect_rendering

Definition at line 1717 of file gropengldraw.cpp.