tristrip Struct Reference

#include <tristrip.h>

List of all members.

Classes

struct  drawcall
struct  edge
struct  triangle

Public Types

enum  { UNUSED = 0xFFFE, REMOVED = 0xFFFF }

Public Member Functions

template<class T >
void addtriangles (const T *tris, int numtris)
void findconnectivity ()
void removeconnectivity (ushort i)
bool remaining () const
ushort leastconnected ()
int findedge (const triangle &from, const triangle &to, ushort v=UNUSED)
void removenodes (int i)
ushort nexttriangle (triangle &tri, bool &nextswap, ushort v1=UNUSED, ushort v2=UNUSED)
void buildstrip (vector< ushort > &strip, bool reverse=false, bool prims=false)
void buildstrips (vector< ushort > &strips, vector< drawcall > &draws, bool prims=true, bool degen=false)

Public Attributes

vector< triangle > triangles
vector< ushort > connectivity [4]
vector< uchar > nodes


Member Enumeration Documentation

anonymous enum

Enumerator:
UNUSED 
REMOVED 


Member Function Documentation

template<class T >
void tristrip::addtriangles ( const T *  tris,
int  numtris 
) [inline]

void tristrip::buildstrip ( vector< ushort > &  strip,
bool  reverse = false,
bool  prims = false 
) [inline]

void tristrip::buildstrips ( vector< ushort > &  strips,
vector< drawcall > &  draws,
bool  prims = true,
bool  degen = false 
) [inline]

void tristrip::findconnectivity (  )  [inline]

int tristrip::findedge ( const triangle &  from,
const triangle &  to,
ushort  v = UNUSED 
) [inline]

ushort tristrip::leastconnected (  )  [inline]

ushort tristrip::nexttriangle ( triangle &  tri,
bool &  nextswap,
ushort  v1 = UNUSED,
ushort  v2 = UNUSED 
) [inline]

bool tristrip::remaining (  )  const [inline]

void tristrip::removeconnectivity ( ushort  i  )  [inline]

void tristrip::removenodes ( int  i  )  [inline]


Member Data Documentation


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

Generated on Mon Dec 8 21:41:37 2008 for AssaultCube by  doxygen 1.5.7.1