Panda3D
Public Member Functions | Static Public Member Functions

EggVertexAux Class Reference

The set of named auxiliary data that may or may not be assigned to a vertex. More...

#include "eggVertexAux.h"

Inheritance diagram for EggVertexAux:
EggNamedObject EggObject Namable TypedReferenceCount MemoryBase TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Member Functions

 EggVertexAux (const string &name, const LVecBase4d &aux)
 EggVertexAux (const EggVertexAux &copy)
int compare_to (const EggVertexAux &other) const
 An ordering operator to compare two vertices for sorting order.
virtual TypeHandle force_init_type ()
const LVecBase4dget_aux () const
 Returns the auxiliary data quadruple.
virtual TypeHandle get_type () const
EggVertexAuxoperator= (const EggVertexAux &copy)
void set_aux (const LVecBase4d &aux)
 Sets the auxiliary data quadruple.
void set_name (const string &name)
void write (ostream &out, int indent_level) 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.

Detailed Description

The set of named auxiliary data that may or may not be assigned to a vertex.

Panda will import this data and create a custom column for it in the vertex data, but will not otherwise interpret it. Presumably, a shader will process the data later.

Definition at line 33 of file eggVertexAux.h.


Member Function Documentation

int EggVertexAux::compare_to ( const EggVertexAux other) const

An ordering operator to compare two vertices for sorting order.

This imposes an arbitrary ordering useful to identify unique vertices.

Definition at line 91 of file eggVertexAux.cxx.

References LVecBase4d::compare_to().

const LVecBase4d & EggVertexAux::get_aux ( ) const [inline]

Returns the auxiliary data quadruple.

Definition at line 32 of file eggVertexAux.I.

static void EggVertexAux::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 EggNamedObject.

Definition at line 55 of file eggVertexAux.h.

References EggNamedObject::init_type().

void EggVertexAux::set_aux ( const LVecBase4d aux) [inline]

Sets the auxiliary data quadruple.

Definition at line 42 of file eggVertexAux.I.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations