Open source remastering of the Freespace 2 engine
poly_list Class Reference

#include <2d.h>

Public Member Functions

 poly_list ()
 ~poly_list ()
poly_listoperator= (poly_list &)
void allocate (int size)
void make_index_buffer (SCP_vector< int > &vertex_list)
void calculate_tangent ()
int find_index (poly_list *plist, int idx)
int find_index_fast (poly_list *plist, int idx)

Public Attributes

int n_verts

Detailed Description

This should be basicly just like it is in the VB a list of triangles and their associated normals

Definition at line 129 of file 2d.h.

Constructor & Destructor Documentation

poly_list::poly_list ( )

Definition at line 145 of file 2d.h.

poly_list::~poly_list ( )

Definition at line 1753 of file 2d.cpp.

Member Function Documentation

void poly_list::allocate ( int  size)

Definition at line 1704 of file 2d.cpp.

void poly_list::calculate_tangent ( )

Definition at line 1781 of file 2d.cpp.

int poly_list::find_index ( poly_list plist,
int  idx 

Given a list (plist) find the index within the indexed list that the vert at position idx within list is at

Definition at line 1670 of file 2d.cpp.

int poly_list::find_index_fast ( poly_list plist,
int  idx 

Definition at line 1692 of file 2d.cpp.

void poly_list::make_index_buffer ( SCP_vector< int > &  vertex_list)

Definition at line 1870 of file 2d.cpp.

poly_list & poly_list::operator= ( poly_list other_list)

Definition at line 1943 of file 2d.cpp.

Member Data Documentation

int poly_list::n_verts

Definition at line 152 of file 2d.h.

vec3d* poly_list::norm

Definition at line 154 of file 2d.h.

uint* poly_list::sorted_indices

Definition at line 158 of file 2d.h.

int* poly_list::submodels

Definition at line 156 of file 2d.h.

tsb_t* poly_list::tsb

Definition at line 155 of file 2d.h.

vertex* poly_list::vert

Definition at line 153 of file 2d.h.

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