15 #include "geomVertexReader.h" 21 const unsigned char GeomVertexReader::empty_buffer[100] = { 0 };
52 reader.check_array_readers();
53 return set_vertex_column(array, column, &reader);
56 return set_array_column(column);
68 void GeomVertexReader::
69 output(ostream &out)
const {
72 out <<
"GeomVertexReader()";
76 <<
", column = " << column->
get_name()
77 <<
" (" << get_packer()->get_name()
87 void GeomVertexReader::
91 _pointer_begin = NULL;
104 bool GeomVertexReader::
116 nassertr(array >= 0 && array < _vertex_data->get_num_arrays(),
false);
120 _handle = data_reader->get_array_reader(_array);
121 _stride = _handle->get_array_format()->get_stride();
123 _packer = column->_packer;
124 return set_pointer(_start_row);
134 bool GeomVertexReader::
142 _handle = _array_data->get_handle();
143 _stride = _handle->get_array_format()->get_stride();
145 _packer = column->_packer;
146 return set_pointer(_start_row);
const GeomVertexArrayData * get_array_data() const
Returns the particular array object that the reader is currently processing.
bool set_column(int column)
Sets up the reader to use the nth data type of the GeomVertexFormat, numbering from 0...
const GeomVertexColumn * get_column() const
Returns the description of the data type that the reader is working on.
This defines how a single column is interleaved within a vertex array stored within a Geom...
int get_read_row() const
Returns the row index from which the data will be retrieved by the next call to get_data*().
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...
Encapsulates the data from a GeomVertexData, pre-fetched for one stage of the pipeline.
const InternalName * get_name() const
Returns the name of this particular data field, e.g.
This is the data for one array of a GeomVertexData structure.