Panda3D
|
Class that deals with COLLADA data sources. More...
#include "colladaInput.h"
Public Member Functions | |
unsigned int | get_offset () const |
Returns the offset associated with this input. | |
bool | is_vertex_source () const |
Returns true if this has a <vertices> element as source. | |
int | make_vertex_columns (GeomVertexArrayFormat *fmt) const |
Takes a semantic and source URI, and adds a new column to the format. | |
void | write_data (GeomVertexData *vdata, int start_row, domP &p, unsigned int stride) const |
Writes data to the indicated GeomVertexData using the given indices. | |
Static Public Member Functions | |
static ColladaInput * | from_dom (domInputLocalOffset &input) |
static ColladaInput * | from_dom (domInputLocal &input) |
Class that deals with COLLADA data sources.
Definition at line 45 of file colladaInput.h.
unsigned int ColladaInput::get_offset | ( | ) | const [inline] |
Returns the offset associated with this input.
Definition at line 31 of file colladaInput.I.
bool ColladaInput::is_vertex_source | ( | ) | const [inline] |
Returns true if this has a <vertices> element as source.
Definition at line 22 of file colladaInput.I.
Referenced by make_vertex_columns(), and write_data().
int ColladaInput::make_vertex_columns | ( | GeomVertexArrayFormat * | format | ) | const |
Takes a semantic and source URI, and adds a new column to the format.
If this is a vertex source, adds all of the inputs from the corresponding <vertices> element. Returns the number of columns added to the format.
Definition at line 174 of file colladaInput.cxx.
References GeomVertexArrayFormat::add_column(), and is_vertex_source().
void ColladaInput::write_data | ( | GeomVertexData * | vdata, |
int | start_row, | ||
domP & | p, | ||
unsigned int | stride | ||
) | const |
Writes data to the indicated GeomVertexData using the given indices.
Definition at line 243 of file colladaInput.cxx.
References is_vertex_source().