22 TypeHandle GeomTristripsAdjacency::_type_handle;
27 GeomTristripsAdjacency::
28 GeomTristripsAdjacency(GeomTristripsAdjacency::UsageHint usage_hint) :
36 GeomTristripsAdjacency::
45 GeomTristripsAdjacency::
46 ~GeomTristripsAdjacency() {
65 GeomPrimitive::PrimitiveType GeomTristripsAdjacency::
66 get_primitive_type()
const {
74 int GeomTristripsAdjacency::
75 get_geom_rendering()
const {
78 return GR_triangle_strip | GR_indexed_other | GR_strip_cut_index | GR_adjacency;
80 return GR_triangle_strip | GR_indexed_other | GR_adjacency;
83 return GR_triangle_strip | GR_adjacency;
91 int GeomTristripsAdjacency::
92 get_min_num_vertices_per_primitive()
const {
102 int GeomTristripsAdjacency::
103 get_num_unused_vertices_per_primitive()
const {
110 bool GeomTristripsAdjacency::
113 return gsg->draw_tristrips_adj(reader, force);
120 bool GeomTristripsAdjacency::
121 requires_unused_vertices()
const {
131 void GeomTristripsAdjacency::
158 object->fillin(scan, manager);
This object provides a high-level interface for quickly writing a sequence of numeric values from a v...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Base class for objects that can be written to and read from Bam files.
This is an abstract base class for a family of classes that represent the fundamental geometry primit...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void parse_params(const FactoryParams ¶ms, DatagramIterator &scan, BamReader *&manager)
Takes in a FactoryParams, passed from a WritableFactory into any TypedWritable's make function,...
Defines a series of triangle strips with adjacency information.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
void register_factory(TypeHandle handle, CreateFunc *func, void *user_data=nullptr)
Registers a new kind of thing the Factory will be able to create.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
get_strip_cut_index
Returns the index of the indicated type that is reserved for use as a strip cut index,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static void register_with_read_factory()
Tells the BamReader how to create objects of type Geom.
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...
int get_num_rows() const
Returns the number of rows stored in the array, based on the number of bytes and the stride.
static WritableFactory * get_factory()
Returns the global WritableFactory for generating TypedWritable objects.
int get_num_primitives() const
Returns the number of individual primitives stored within this object.
PT(GeomPrimitive) GeomTristripsAdjacency
Returns the fundamental rendering type of this primitive: whether it is points, lines,...
A class to retrieve the individual data elements previously stored in a Datagram.
TypeHandle is the identifier used to differentiate C++ class types.
Encapsulates the data from a GeomPrimitive, pre-fetched for one stage of the pipeline.
bool is_indexed() const
Returns true if the primitive is indexed, false otherwise.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the data for one array of a GeomVertexData structure.