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

#include <Polygon.h>

List of all members.

Public Types

enum  { MAX_VERTS = 4 }

Public Member Functions

 Poly ()
 Poly (int init)
 ~Poly ()
int operator< (const Poly &p) const
int operator== (const Poly &p) const
int Contains (const Vec3 &pt) const

Static Public Member Functions

static const char * TYPENAME ()

Public Attributes

BYTE nverts
BYTE visible
WORD verts [MAX_VERTS]
WORD vlocs [MAX_VERTS]
VertexSetvertex_set
Materialmaterial
int sortval
float flatness
Plane plane

Detailed Description

Definition at line 30 of file Polygon.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
MAX_VERTS 

Definition at line 34 of file Polygon.h.


Constructor & Destructor Documentation

Poly::Poly ( )
inline

Definition at line 36 of file Polygon.h.

Poly::Poly ( int  init)

Definition at line 355 of file Polygon.cpp.

Poly::~Poly ( )
inline

Definition at line 38 of file Polygon.h.


Member Function Documentation

int Poly::Contains ( const Vec3 pt) const

Definition at line 386 of file Polygon.cpp.

int Poly::operator< ( const Poly p) const
inline

Definition at line 40 of file Polygon.h.

int Poly::operator== ( const Poly p) const
inline

Definition at line 41 of file Polygon.h.

static const char* Poly::TYPENAME ( )
inlinestatic

Definition at line 32 of file Polygon.h.


Member Data Documentation

float Poly::flatness

Definition at line 52 of file Polygon.h.

Material* Poly::material

Definition at line 50 of file Polygon.h.

BYTE Poly::nverts

Definition at line 45 of file Polygon.h.

Plane Poly::plane

Definition at line 53 of file Polygon.h.

int Poly::sortval

Definition at line 51 of file Polygon.h.

VertexSet* Poly::vertex_set

Definition at line 49 of file Polygon.h.

WORD Poly::verts[MAX_VERTS]

Definition at line 47 of file Polygon.h.

BYTE Poly::visible

Definition at line 46 of file Polygon.h.

WORD Poly::vlocs[MAX_VERTS]

Definition at line 48 of file Polygon.h.


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