A local vertex pool, as might appear in the middle of the hierarchy, for instance for a mesh.
More...
#include "fltLocalVertexPool.h"
List of all members.
Public Types |
| enum | AttributeMask {
AM_has_position = 0x80000000,
AM_has_color_index = 0x40000000,
AM_has_packed_color = 0x20000000,
AM_has_normal = 0x10000000,
AM_has_base_uv = 0x08000000,
AM_has_uv_1 = 0x04000000,
AM_has_uv_2 = 0x02000000,
AM_has_uv_3 = 0x01000000,
AM_has_uv_4 = 0x00800000,
AM_has_uv_5 = 0x00400000,
AM_has_uv_6 = 0x00200000,
AM_has_uv_7 = 0x00100000
} |
|
typedef pvector< PT(FltVertex)> | Vertices |
Public Member Functions |
|
| FltLocalVertexPool (FltHeader *header) |
| 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.
|
|
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 |
|
Vertices | _vertices |
Detailed Description
A local vertex pool, as might appear in the middle of the hierarchy, for instance for a mesh.
Definition at line 31 of file fltLocalVertexPool.h.
Member Function Documentation
| bool FltLocalVertexPool::build_record |
( |
FltRecordWriter & |
writer | ) |
const [virtual] |
Fills up the current record on the FltRecordWriter with data for this record, but does not advance the writer.
Returns true on success, false if there is some error.
Reimplemented from FltRecord.
Definition at line 137 of file fltLocalVertexPool.cxx.
References Datagram::add_be_float32(), Datagram::add_be_float64(), Datagram::add_be_int32(), FltRecord::build_record(), FltHeader::get_closest_rgb(), FltVertex::get_color(), FltVertex::has_color(), FltPackedColor::set_color(), FltRecordWriter::set_opcode(), and FltRecordWriter::update_datagram().
| bool FltLocalVertexPool::extract_record |
( |
FltRecordReader & |
reader | ) |
[virtual] |
| static void FltLocalVertexPool::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 FltRecord.
Definition at line 67 of file fltLocalVertexPool.h.
The documentation for this class was generated from the following files: