23TypeHandle GeomLinestripsAdjacency::_type_handle;
28GeomLinestripsAdjacency::
29GeomLinestripsAdjacency(GeomEnums::UsageHint usage_hint) :
37GeomLinestripsAdjacency::
46GeomLinestripsAdjacency::
47~GeomLinestripsAdjacency() {
55 return new GeomLinestripsAdjacency(*
this);
79 return GR_line_strip | GR_indexed_other | GR_strip_cut_index | GR_adjacency;
81 return GR_line_strip | GR_indexed_other | GR_adjacency;
84 return GR_line_strip | GR_adjacency;
114 return gsg->draw_linestrips_adj(reader, force);
128decompose_impl()
const {
134 int num_vertices = from.get_num_vertices();
137 const int num_unused = 1;
139 int vi = -num_unused;
141 while (li < (
int)ends.size()) {
145 nassertr(vi + 3 <= end, lines);
146 int v0 = from.get_vertex(vi++);
147 int v1 = from.get_vertex(vi++);
148 int v2 = from.get_vertex(vi++);
150 int v3 = from.get_vertex(vi++);
151 lines->add_vertex(v0);
152 lines->add_vertex(v1);
153 lines->add_vertex(v2);
154 lines->add_vertex(v3);
161 nassertr(vi == num_vertices,
nullptr);
170bool GeomLinestripsAdjacency::
171requires_unused_vertices()
const {
181void GeomLinestripsAdjacency::
183 GeomVertexWriter to(vertices, 0);
208 object->fillin(scan, manager);
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,...
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...
static WritableFactory * get_factory()
Returns the global WritableFactory for generating TypedWritable objects.
A class to retrieve the individual data elements previously stored in a Datagram.
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.
Defines a series of disconnected line segments with adjacency information, for use with geometry shad...
Defines a series of line strips with adjacency information.
static void register_with_read_factory()
Tells the BamReader how to create objects of type Geom.
virtual PrimitiveType get_primitive_type() const
Returns the fundamental rendering type of this primitive: whether it is points, lines,...
virtual int get_geom_rendering() const
Returns the set of GeomRendering bits that represent the rendering properties required to properly re...
virtual bool draw(GraphicsStateGuardianBase *gsg, const GeomPrimitivePipelineReader *reader, bool force) const
Calls the appropriate method on the GSG to draw the primitive.
virtual int get_num_unused_vertices_per_primitive() const
Returns the number of vertices that are added between primitives that aren't, strictly speaking,...
virtual int get_min_num_vertices_per_primitive() const
Returns the minimum number of vertices that must be added before close_primitive() may legally be cal...
Encapsulates the data from a GeomPrimitive, pre-fetched for one stage of the pipeline.
This is an abstract base class for a family of classes that represent the fundamental geometry primit...
int get_num_primitives() const
Returns the number of individual primitives stored within this object.
CPTA_int get_ends() const
Returns a const pointer to the primitive ends array so application code can read it directly.
get_usage_hint
Returns the usage hint for this primitive.
get_strip_cut_index
Returns the index of the indicated type that is reserved for use as a strip cut index,...
get_shade_model
Returns the ShadeModel hint for this primitive.
bool is_indexed() const
Returns true if the primitive is indexed, false otherwise.
This is the data for one array of a GeomVertexData structure.
int get_num_rows() const
Returns the number of rows stored in the array, based on the number of bytes and the stride.
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...
A thread; that is, a lightweight process.
get_current_thread
Returns a pointer to the currently-executing Thread object.
TypeHandle is the identifier used to differentiate C++ class types.
Base class for objects that can be written to and read from Bam files.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.