vegastrike  0.5.1.r1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GFXQuadList Class Reference

#include <gfxlib_struct.h>

Public Member Functions

 GFXQuadList (GFXBOOL color=GFXFALSE)
 Creates an initial Quad List. More...
 
 ~GFXQuadList ()
 Trashes given quad list. More...
 
void Draw ()
 Draws all quads contained in quad list. More...
 
int AddQuad (const GFXVertex *vertices, const GFXColorVertex *colors=0)
 Adds quad to quad list, an integer indicating number that should be used to henceforth Mod it or delete it. More...
 
void DelQuad (int which)
 Removes quad from Quad list. More...
 
void ModQuad (int which, const GFXVertex *vertices, float alpha=-1)
 modifies quad in quad list to contain new vertices and color information More...
 
void ModQuad (int which, const GFXColorVertex *vertices)
 

Detailed Description

Meant to be a huge list of individual quads (like light maps) that need to be resizable, etc all to be drawn at once.... nice on GL :-)

Definition at line 451 of file gfxlib_struct.h.

Constructor & Destructor Documentation

GFXQuadList::GFXQuadList ( GFXBOOL  color = GFXFALSE)

Creates an initial Quad List.

GFXQuadList::~GFXQuadList ( )

Trashes given quad list.

Member Function Documentation

int GFXQuadList::AddQuad ( const GFXVertex vertices,
const GFXColorVertex colors = 0 
)

Adds quad to quad list, an integer indicating number that should be used to henceforth Mod it or delete it.

void GFXQuadList::DelQuad ( int  which)

Removes quad from Quad list.

void GFXQuadList::Draw ( )

Draws all quads contained in quad list.

void GFXQuadList::ModQuad ( int  which,
const GFXVertex vertices,
float  alpha = -1 
)

modifies quad in quad list to contain new vertices and color information

void GFXQuadList::ModQuad ( int  which,
const GFXColorVertex vertices 
)

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