A single primitive of a mesh, like a triangle strip or fan.
More...
#include "fltMeshPrimitive.h"
List of all members.
Public Types |
| enum | PrimitiveType { PT_tristrip = 1,
PT_trifan = 2,
PT_quadstrip = 3,
PT_polygon = 4
} |
|
typedef vector_int | Vertices |
Public Member Functions |
|
| FltMeshPrimitive (FltHeader *header) |
|
virtual TypeHandle | force_init_type () |
|
virtual TypeHandle | get_type () const |
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
| static void | init_type () |
| | This function is declared non-inline to work around a compiler bug in g++ 2.96.
|
Public Attributes |
|
PrimitiveType | _primitive_type |
|
Vertices | _vertices |
Protected Member Functions |
| virtual bool | build_record (FltRecordWriter &writer) const |
| | Fills up the current record on the FltRecordWriter with data for this record, but does not advance the writer.
|
| virtual bool | extract_record (FltRecordReader &reader) |
| | Fills in the information in this bead based on the information given in the indicated datagram, whose opcode has already been read.
|
Detailed Description
A single primitive of a mesh, like a triangle strip or fan.
Definition at line 31 of file fltMeshPrimitive.h.
Member Function Documentation
| bool FltMeshPrimitive::build_record |
( |
FltRecordWriter & |
writer | ) |
const [protected, virtual] |
| bool FltMeshPrimitive::extract_record |
( |
FltRecordReader & |
reader | ) |
[protected, virtual] |
| static void FltMeshPrimitive::init_type |
( |
| ) |
[inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from FltBead.
Definition at line 60 of file fltMeshPrimitive.h.
The documentation for this class was generated from the following files: