Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
VertexSet Struct Reference

#include <Polygon.h>

List of all members.

Public Types

enum  VertexSpaces { OBJECT_SPACE, WORLD_SPACE, VIEW_SPACE, SCREEN_SPACE }

Public Member Functions

 VertexSet (int m)
 ~VertexSet ()
void Resize (int m, bool preserve=false)
void Delete ()
void Clear ()
void CreateTangents ()
void CreateAdditionalTexCoords ()
bool CopyVertex (int dst, int src)
void CalcExtents (Point &plus, Point &minus)
VertexSetClone () const

Static Public Member Functions

static const char * TYPENAME ()

Public Attributes

int nverts
int space
Vec3loc
Vec3nrm
Vec3s_loc
float * rw
float * tu
float * tv
float * tu1
float * tv1
DWORD * diffuse
DWORD * specular
Vec3tangent
Vec3binormal

Detailed Description

Definition at line 120 of file Polygon.h.


Member Enumeration Documentation

Enumerator:
OBJECT_SPACE 
WORLD_SPACE 
VIEW_SPACE 
SCREEN_SPACE 

Definition at line 124 of file Polygon.h.


Constructor & Destructor Documentation

VertexSet::VertexSet ( int  m)

Definition at line 21 of file Polygon.cpp.

VertexSet::~VertexSet ( )

Definition at line 30 of file Polygon.cpp.


Member Function Documentation

void VertexSet::CalcExtents ( Point plus,
Point minus 
)

Definition at line 336 of file Polygon.cpp.

void VertexSet::Clear ( )

Definition at line 198 of file Polygon.cpp.

VertexSet * VertexSet::Clone ( ) const

Definition at line 291 of file Polygon.cpp.

bool VertexSet::CopyVertex ( int  dst,
int  src 
)

Definition at line 261 of file Polygon.cpp.

void VertexSet::CreateAdditionalTexCoords ( )

Definition at line 244 of file Polygon.cpp.

void VertexSet::CreateTangents ( )

Definition at line 227 of file Polygon.cpp.

void VertexSet::Delete ( )

Definition at line 174 of file Polygon.cpp.

void VertexSet::Resize ( int  m,
bool  preserve = false 
)

Definition at line 38 of file Polygon.cpp.

static const char* VertexSet::TYPENAME ( )
inlinestatic

Definition at line 122 of file Polygon.h.


Member Data Documentation

Vec3* VertexSet::binormal

Definition at line 153 of file Polygon.h.

DWORD* VertexSet::diffuse

Definition at line 150 of file Polygon.h.

Vec3* VertexSet::loc

Definition at line 142 of file Polygon.h.

Vec3* VertexSet::nrm

Definition at line 143 of file Polygon.h.

int VertexSet::nverts

Definition at line 139 of file Polygon.h.

float* VertexSet::rw

Definition at line 145 of file Polygon.h.

Vec3* VertexSet::s_loc

Definition at line 144 of file Polygon.h.

int VertexSet::space

Definition at line 140 of file Polygon.h.

DWORD* VertexSet::specular

Definition at line 151 of file Polygon.h.

Vec3* VertexSet::tangent

Definition at line 152 of file Polygon.h.

float* VertexSet::tu

Definition at line 146 of file Polygon.h.

float* VertexSet::tu1

Definition at line 148 of file Polygon.h.

float* VertexSet::tv

Definition at line 147 of file Polygon.h.

float* VertexSet::tv1

Definition at line 149 of file Polygon.h.


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