FS2_Open
Open source remastering of the Freespace 2 engine
grbatch.cpp File Reference
#include "bmpman/bmpman.h"
#include "cmdline/cmdline.h"
#include "globalincs/pstypes.h"
#include "graphics/2d.h"
#include "graphics/grbatch.h"
#include "graphics/gropengldraw.h"
#include "graphics/gropenglstate.h"
#include "render/3d.h"

Go to the source code of this file.

Classes

struct  batch_item
 
struct  g_sdr_batch_item
 

Functions

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

Variables

voidBatch_buffer = NULL
 
size_t Batch_buffer_size = 0
 
voidBatch_geometry_buffer = NULL
 
size_t Batch_geometry_buffer_size = 0
 

Function Documentation

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

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,
float  depth 
)

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,
float  depth 
)

Definition at line 793 of file grbatch.cpp.

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

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 
)

Definition at line 888 of file grbatch.cpp.

int batch_add_quad ( int  texture,
int  tmap_flags,
vertex verts,
float  alpha 
)

Definition at line 858 of file grbatch.cpp.

int batch_add_tri ( int  texture,
int  tmap_flags,
vertex verts,
float  alpha 
)

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)

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)

Definition at line 1245 of file grbatch.cpp.

void batch_render_geometry_map_bitmaps ( int  buffer_handle)

Definition at line 1033 of file grbatch.cpp.

void batch_render_geometry_shader_map_bitmaps ( int  buffer_handle)

Definition at line 1053 of file grbatch.cpp.

void batch_render_lasers ( int  buffer_handle)

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,
float  offset 
)

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,
float  depth 
)

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.

Variable Documentation

void* Batch_buffer = NULL

Definition at line 692 of file grbatch.cpp.

size_t Batch_buffer_size = 0

Definition at line 693 of file grbatch.cpp.

void* Batch_geometry_buffer = NULL

Definition at line 695 of file grbatch.cpp.

size_t Batch_geometry_buffer_size = 0

Definition at line 696 of file grbatch.cpp.