Panda3D
|
Encapsulates the data from a GeomPrimitive, pre-fetched for one stage of the pipeline. More...
#include "geomPrimitive.h"
Public Member Functions | |
GeomPrimitivePipelineReader (const GeomPrimitive *object, Thread *current_thread) | |
void | check_minmax () const |
Ensures that the primitive's minmax cache has been computed. | |
bool | check_valid (const GeomVertexDataPipelineReader *data_reader) const |
CPT (GeomVertexArrayData) get_mins() const | |
CPT (GeomVertexArrayData) get_maxs() const | |
Thread * | get_current_thread () const |
int | get_data_size_bytes () const |
Returns the number of bytes stored in the vertices array. | |
CPTA_int | get_ends () const |
int | get_first_vertex () const |
int | get_index_stride () const |
NumericType | get_index_type () const |
int | get_max_vertex () const |
int | get_min_vertex () const |
UpdateSeq | get_modified () const |
int | get_num_primitives () const |
int | get_num_vertices () const |
const GeomPrimitive * | get_object () const |
const unsigned char * | get_read_pointer (bool force) const |
ShadeModel | get_shade_model () const |
UsageHint | get_usage_hint () const |
int | get_vertex (int i) const |
Returns the ith vertex index in the table. | |
const GeomVertexArrayDataHandle * | get_vertices_reader () const |
bool | is_indexed () const |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Encapsulates the data from a GeomPrimitive, pre-fetched for one stage of the pipeline.
Definition at line 327 of file geomPrimitive.h.
void GeomPrimitivePipelineReader::check_minmax | ( | ) | const |
Ensures that the primitive's minmax cache has been computed.
Definition at line 2000 of file geomPrimitive.cxx.
Referenced by GeomPrimitive::check_valid(), GeomPipelineReader::draw(), GeomPrimitive::get_max_vertex(), and GeomPrimitive::get_min_vertex().
int GeomPrimitivePipelineReader::get_data_size_bytes | ( | ) | const [inline] |
Returns the number of bytes stored in the vertices array.
Definition at line 637 of file geomPrimitive.I.
Referenced by DXIndexBufferContext9::allocate_ibuffer(), IndexBufferContext::changed_size(), DXIndexBufferContext8::create_ibuffer(), DXIndexBufferContext9::create_ibuffer(), IndexBufferContext::mark_loaded(), DXIndexBufferContext8::upload_data(), and DXIndexBufferContext9::upload_data().
int GeomPrimitivePipelineReader::get_vertex | ( | int | i | ) | const |
Returns the ith vertex index in the table.
Definition at line 2055 of file geomPrimitive.cxx.
References GeomVertexReader::set_row_unsafe().
Referenced by GeomPrimitive::get_vertex().