Open source remastering of the Freespace 2 engine
geometry_batcher Class Reference

#include <grbatch.h>

Public Member Functions

 geometry_batcher ()
 ~geometry_batcher ()
 geometry_batcher (const geometry_batcher &geo)
const geometry_batcheroperator= (const geometry_batcher &geo)
void allocate (int quad, int n_tri=0)
void add_allocate (int quad, int n_tri=0)
void draw_bitmap (vertex *position, int orient, float rad, float depth=0)
void draw_bitmap (vertex *position, float rad, float angle, float depth)
void draw_tri (vertex *verts)
void draw_quad (vertex *verts)
void draw_beam (vec3d *start, vec3d *end, float width, float intensity=1.0f, float offset=0.0f)
float draw_laser (vec3d *p0, float width1, vec3d *p1, float width2, int r, int g, int b)
void render (int flags, float radius=0.0f)
void load_buffer (effect_vertex *buffer, int *n_verts)
void render_buffer (int buffer_handle, int flags)
int need_to_render ()
void operator= (int)

Detailed Description

Definition at line 13 of file grbatch.h.

Constructor & Destructor Documentation

geometry_batcher::geometry_batcher ( )

Definition at line 32 of file grbatch.h.

geometry_batcher::~geometry_batcher ( )

Definition at line 18 of file grbatch.cpp.

geometry_batcher::geometry_batcher ( const geometry_batcher geo)

Definition at line 35 of file grbatch.h.

Member Function Documentation

void geometry_batcher::add_allocate ( int  quad,
int  n_tri = 0 

Definition at line 83 of file grbatch.cpp.

void geometry_batcher::allocate ( int  quad,
int  n_tri = 0 

Definition at line 66 of file grbatch.cpp.

void geometry_batcher::draw_beam ( vec3d start,
vec3d end,
float  width,
float  intensity = 1.0f,
float  offset = 0.0f 

Definition at line 362 of file grbatch.cpp.

void geometry_batcher::draw_bitmap ( vertex position,
int  orient,
float  rad,
float  depth = 0 

Definition at line 157 of file grbatch.cpp.

void geometry_batcher::draw_bitmap ( vertex position,
float  rad,
float  angle,
float  depth 

Definition at line 263 of file grbatch.cpp.

float geometry_batcher::draw_laser ( vec3d p0,
float  width1,
vec3d p1,
float  width2,
int  r,
int  g,
int  b 

Definition at line 429 of file grbatch.cpp.

void geometry_batcher::draw_quad ( vertex verts)

Definition at line 345 of file grbatch.cpp.

void geometry_batcher::draw_tri ( vertex verts)

Definition at line 334 of file grbatch.cpp.

void geometry_batcher::load_buffer ( effect_vertex buffer,
int n_verts 

Definition at line 537 of file grbatch.cpp.

int geometry_batcher::need_to_render ( )

Definition at line 72 of file grbatch.h.

const geometry_batcher & geometry_batcher::operator= ( const geometry_batcher geo)

Definition at line 142 of file grbatch.cpp.

void geometry_batcher::operator= ( int  )

Definition at line 74 of file grbatch.h.

void geometry_batcher::render ( int  flags,
float  radius = 0.0f 

Definition at line 523 of file grbatch.cpp.

void geometry_batcher::render_buffer ( int  buffer_handle,
int  flags 

Definition at line 563 of file grbatch.cpp.

The documentation for this class was generated from the following files: