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

Go to the source code of this file.

Classes

class  geometry_batcher
 
class  geometry_shader_batcher
 

Functions

float batch_add_laser (int texture, vec3d *p0, float width1, vec3d *p1, float width2, int r=255, int g=255, int b=255)
 
int batch_add_bitmap (int texture, int tmap_flags, vertex *pnt, int orient, float rad, float alpha=1.0f, float depth=0.0f)
 
int batch_add_bitmap_rotated (int texture, int tmap_flags, vertex *pnt, float angle, float rad, float alpha=1.0f, float depth=0.0f)
 
int batch_add_beam (int texture, int tmap_flags, vec3d *start, vec3d *end, float width, float intensity=1.0f)
 
int batch_add_polygon (int texture, int tmap_flags, vec3d *pos, matrix *orient, float width, float height, float alpha=1.0f)
 
int batch_add_tri (int texture, int tmap_flags, vertex *verts, float alpha=1.0f)
 
int batch_add_quad (int texture, int tmap_flags, vertex *verts, float alpha=1.0f)
 
int distortion_add_bitmap_rotated (int texture, int tmap_flags, vertex *pnt, float angle, float rad, float alpha=1.0f, float depth=0.0f)
 
int distortion_add_beam (int texture, int tmap_flags, vec3d *start, vec3d *end, float width, float intensity=1.0f, float offset=0.0f)
 
void batch_render_all (int stream_buffer=-1)
 
void batch_render_geometry_map_bitmaps (int buffer_handle=-1)
 
void batch_load_buffer_geometry_map_bitmaps (effect_vertex *buffer, int *n_verts)
 
void batch_render_lasers (int buffer_handle=-1)
 
void batch_load_buffer_lasers (effect_vertex *buffer, int *n_verts)
 
void batch_reset ()
 
void batch_render_distortion_map_bitmaps (int buffer_handle=-1)
 
void batch_load_buffer_distortion_map_bitmaps (effect_vertex *buffer, int *n_verts)
 
int batch_get_size ()
 
void batch_render_close ()
 
int geometry_batch_add_bitmap (int texture, int tmap_flags, vertex *pnt, int orient, float rad, float alpha, float depth)
 
void batch_load_buffer_geometry_shader_map_bitmaps (particle_pnt *buffer, int *n_verts)
 
void batch_render_geometry_shader_map_bitmaps ()
 
void geometry_batch_render (int stream_buffer)
 
int geometry_batch_get_size ()
 

Function Documentation

int batch_add_beam ( int  texture,
int  tmap_flags,
vec3d start,
vec3d end,
float  width,
float  intensity = 1.0f 
)

Definition at line 968 of file grbatch.cpp.

int batch_add_bitmap ( int  texture,
int  tmap_flags,
vertex pnt,
int  orient,
float  rad,
float  alpha = 1.0f,
float  depth = 0.0f 
)

Definition at line 724 of file grbatch.cpp.

int batch_add_bitmap_rotated ( int  texture,
int  tmap_flags,
vertex pnt,
float  angle,
float  rad,
float  alpha = 1.0f,
float  depth = 0.0f 
)

Definition at line 793 of file grbatch.cpp.

float batch_add_laser ( int  texture,
vec3d p0,
float  width1,
vec3d p1,
float  width2,
int  r = 255,
int  g = 255,
int  b = 255 
)

Definition at line 698 of file grbatch.cpp.

int batch_add_polygon ( int  texture,
int  tmap_flags,
vec3d pos,
matrix orient,
float  width,
float  height,
float  alpha = 1.0f 
)

Definition at line 888 of file grbatch.cpp.

int batch_add_quad ( int  texture,
int  tmap_flags,
vertex verts,
float  alpha = 1.0f 
)

Definition at line 858 of file grbatch.cpp.

int batch_add_tri ( int  texture,
int  tmap_flags,
vertex verts,
float  alpha = 1.0f 
)

Definition at line 828 of file grbatch.cpp.

int batch_get_size ( )

Definition at line 1281 of file grbatch.cpp.

void batch_load_buffer_distortion_map_bitmaps ( effect_vertex buffer,
int n_verts 
)

Definition at line 1266 of file grbatch.cpp.

void batch_load_buffer_geometry_map_bitmaps ( effect_vertex buffer,
int n_verts 
)

Definition at line 1069 of file grbatch.cpp.

void batch_load_buffer_geometry_shader_map_bitmaps ( particle_pnt buffer,
int n_verts 
)

Definition at line 1084 of file grbatch.cpp.

void batch_load_buffer_lasers ( effect_vertex buffer,
int n_verts 
)

Definition at line 1018 of file grbatch.cpp.

void batch_render_all ( int  stream_buffer = -1)

Definition at line 1124 of file grbatch.cpp.

void batch_render_close ( )

Definition at line 1165 of file grbatch.cpp.

void batch_render_distortion_map_bitmaps ( int  buffer_handle = -1)

Definition at line 1245 of file grbatch.cpp.

void batch_render_geometry_map_bitmaps ( int  buffer_handle = -1)

Definition at line 1033 of file grbatch.cpp.

void batch_render_geometry_shader_map_bitmaps ( )
void batch_render_lasers ( int  buffer_handle = -1)

Definition at line 998 of file grbatch.cpp.

void batch_reset ( )

Definition at line 1159 of file grbatch.cpp.

int distortion_add_beam ( int  texture,
int  tmap_flags,
vec3d start,
vec3d end,
float  width,
float  intensity = 1.0f,
float  offset = 0.0f 
)

Definition at line 1210 of file grbatch.cpp.

int distortion_add_bitmap_rotated ( int  texture,
int  tmap_flags,
vertex pnt,
float  angle,
float  rad,
float  alpha = 1.0f,
float  depth = 0.0f 
)

Definition at line 1175 of file grbatch.cpp.

int geometry_batch_add_bitmap ( int  texture,
int  tmap_flags,
vertex pnt,
int  orient,
float  rad,
float  alpha,
float  depth 
)

Definition at line 766 of file grbatch.cpp.

int geometry_batch_get_size ( )

Definition at line 1300 of file grbatch.cpp.

void geometry_batch_render ( int  stream_buffer)

Definition at line 1099 of file grbatch.cpp.