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

#include <gfxlib_struct.h>

Inheritance diagram for GFXSphereVertexList:
GFXVertexList

Public Member Functions

 GFXSphereVertexList (float radius, int detail, bool insideout, bool reverse_normals)
 creates a vertex list with 1 polytype and a given number of vertices More...
 
 ~GFXSphereVertexList ()
 
virtual VDATBeginMutate (int offset)
 Returns the array of vertices to be mutated. More...
 
virtual void EndMutate (int newsize=0)
 Ends mutation and refreshes display list. More...
 
virtual void BeginDrawState (GFXBOOL lock=GFXTRUE)
 Loads the draw state (what is active) of a given vlist for mass drawing Specifies array pointers and loads the draw state of a given vlist for mass drawing. More...
 
virtual void Draw ()
 Draws a single copy of the mass-loaded vlist. More...
 
virtual void EndDrawState (GFXBOOL lock=GFXTRUE)
 
virtual void GetPolys (GFXVertex **vert, int *numPolys, int *numTris)
 returns a packed vertex list with number of polys and number of tries to passed in arguments. Useful for getting vertex info from a mesh More...
 
virtual void ProceduralModification ()
 generates procedural planetdata to the actual detaillevel with the "plasma method" More...
 
- Public Member Functions inherited from GFXVertexList
void RefreshDisplayList ()
 Propagates modifications to the display list. More...
 
 GFXVertexList (enum POLYTYPE poly, int numVertices, const GFXVertex *vertices, int numindices, bool Mutable=false, unsigned int *index=0)
 creates a vertex list with 1 polytype and a given number of vertices More...
 
 GFXVertexList (enum POLYTYPE *poly, int numVertices, const GFXVertex *vertices, int numlists, int *offsets, bool Mutable=false, unsigned int *index=0)
 Creates a vertex list with an arbitrary number of poly types and given vertices, num list and offsets (see above) More...
 
 GFXVertexList (enum POLYTYPE poly, int numVertices, const GFXColorVertex *colors, int numindices, bool Mutable=false, unsigned int *index=0)
 Creates a vertex list with 1 poly type and color information to boot. More...
 
 GFXVertexList (enum POLYTYPE *poly, int numVertices, const GFXColorVertex *colors, int numlists, int *offsets, bool Mutable=false, unsigned int *index=0)
 Creates a vertex list with an arbitrary number of poly types and color. More...
 
virtual ~GFXVertexList ()
 
virtual int numTris () const
 Returns number of Triangles in vertex list (counts tri strips) More...
 
virtual int numQuads () const
 Returns number of Quads in vertex list (counts quad strips) More...
 
unsigned int GetIndex (int offset) const
 Looks up the index in the appropriate short, char or int array. More...
 
POLYTYPEGetPolyType () const
 
int * GetOffsets () const
 
int GetNumLists () const
 
bool hasColor () const
 
int GetNumVertices () const
 
virtual VDATMap (bool read, bool write)
 
void UnMap ()
 
void LoadDrawState ()
 Loads the draw state (what is active) of a given vlist for mass drawing. More...
 
void Draw (enum POLYTYPE poly, int numV)
 
void Draw (enum POLYTYPE poly, int numV, unsigned char *index)
 
void Draw (enum POLYTYPE poly, int numV, unsigned short *index)
 
void Draw (enum POLYTYPE poly, int numV, unsigned int *index)
 
void DrawOnce ()
 Loads draw state and prepares to draw only once. More...
 

Protected Member Functions

virtual void Draw (enum POLYTYPE *poly, const INDEX index, const int numLists, const int *offsets)
 
- Protected Member Functions inherited from GFXVertexList
const GFXVertexGetVertex (int index) const
 Num vertices allocated. More...
 
const GFXColorVertexGetColorVertex (int index) const
 
void Init (enum POLYTYPE *poly, int numVertices, const GFXVertex *vert, const GFXColorVertex *colors, int numlists, int *offsets, bool Mutable, unsigned int *indices)
 Init function (call from construtor) More...
 
void RenormalizeNormals ()
 
 GFXVertexList ()
 

Protected Attributes

float radius
 Num vertices allocated. More...
 
GFXVertexListsphere
 
- Protected Attributes inherited from GFXVertexList
int numVertices
 
union GFXVertexList::VDAT data
 
union GFXVertexList::INDEX index
 
enum POLYTYPEmode
 Array of modes that vertices will be drawn with. More...
 
bool unique_mode
 
int display_list
 Display list number if list is indeed active. 0 otherwise. More...
 
int vbo_data
 
int numlists
 number of different mode, drawn lists More...
 
int * offsets
 
char changed
 If vertex list has been mutated since last draw. Low 3 bits store the stride of the index list (if avail). another bit for if color is presnet. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from GFXVertexList
static void VtxCopy (GFXVertexList *thus, GFXVertex *dst, int offset, int howmany)
 copies nonindexed vertices to dst vertex array More...
 
static void ColVtxCopy (GFXVertexList *thus, GFXVertex *dst, int offset, int howmany)
 Copies nonindex colored vertices to dst vertex array. More...
 
static void ColIndVtxCopy (GFXVertexList *thus, GFXVertex *dst, int offset, int howmany)
 Copies indexed colored vertices to dst vertex array. More...
 
static void IndVtxCopy (GFXVertexList *thus, GFXVertex *dst, int offset, int howmany)
 Copies indexed vertices to dst vertex array. More...
 

Detailed Description

Definition at line 638 of file gfxlib_struct.h.

Constructor & Destructor Documentation

GFXSphereVertexList::GFXSphereVertexList ( float  radius,
int  detail,
bool  insideout,
bool  reverse_normals 
)

creates a vertex list with 1 polytype and a given number of vertices

GFXSphereVertexList::~GFXSphereVertexList ( )

Member Function Documentation

virtual void GFXSphereVertexList::BeginDrawState ( GFXBOOL  lock = GFXTRUE)
virtual

Loads the draw state (what is active) of a given vlist for mass drawing Specifies array pointers and loads the draw state of a given vlist for mass drawing.

Reimplemented from GFXVertexList.

virtual VDAT* GFXSphereVertexList::BeginMutate ( int  offset)
virtual

Returns the array of vertices to be mutated.

Reimplemented from GFXVertexList.

virtual void GFXSphereVertexList::Draw ( enum POLYTYPE poly,
const INDEX  index,
const int  numLists,
const int *  offsets 
)
protectedvirtual

Reimplemented from GFXVertexList.

virtual void GFXSphereVertexList::Draw ( )
virtual

Draws a single copy of the mass-loaded vlist.

Reimplemented from GFXVertexList.

virtual void GFXSphereVertexList::EndDrawState ( GFXBOOL  lock = GFXTRUE)
virtual

Reimplemented from GFXVertexList.

virtual void GFXSphereVertexList::EndMutate ( int  newsize = 0)
virtual

Ends mutation and refreshes display list.

Reimplemented from GFXVertexList.

virtual void GFXSphereVertexList::GetPolys ( GFXVertex **  vert,
int *  numPolys,
int *  numTris 
)
virtual

returns a packed vertex list with number of polys and number of tries to passed in arguments. Useful for getting vertex info from a mesh

Reimplemented from GFXVertexList.

void GFXSphereVertexList::ProceduralModification ( )
virtual

generates procedural planetdata to the actual detaillevel with the "plasma method"

Definition at line 637 of file gfxlib_struct.cpp.

Member Data Documentation

float GFXSphereVertexList::radius
protected

Num vertices allocated.

Definition at line 642 of file gfxlib_struct.h.

GFXVertexList* GFXSphereVertexList::sphere
protected

Definition at line 643 of file gfxlib_struct.h.


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