18 #include "pandabase.h"
19 #include "geomPrimitive.h"
29 GeomPatches(
int num_vertices_per_patch, UsageHint usage_hint);
36 virtual PrimitiveType get_primitive_type()
const;
46 int _num_vertices_per_patch;
49 static void register_with_read_factory();
60 static void init_type() {
61 GeomPrimitive::init_type();
62 register_type(_type_handle,
"GeomPatches",
63 GeomPrimitive::get_class_type());
66 return get_class_type();
68 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
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...
virtual int get_num_vertices_per_primitive() const
If the primitive type is a simple type in which all primitives have the same number of vertices...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
Defines a series of "patches", fixed-size groupings of vertices that must be processed by a tessellat...
A container for geometry primitives.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...
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.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...