Defines a series of "patches", fixed-size groupings of vertices that must be processed by a tessellation shader.
More...
Public Member Functions |
| | GeomPatches (int num_vertices_per_patch, UsageHint usage_hint) |
| | The number of vertices per patch must be specified to the GeomPatches constructor, and it may not be changed during the lifetime of the GeomPatches object.
|
|
| GeomPatches (const GeomPatches ©) |
| virtual bool | draw (GraphicsStateGuardianBase *gsg, const GeomPrimitivePipelineReader *reader, bool force) const |
| | Calls the appropriate method on the GSG to draw the primitive.
|
|
virtual TypeHandle | force_init_type () |
| 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, like patches, returns the number of vertices per primitive.
|
| virtual PrimitiveType | get_primitive_type () const |
| | Returns the fundamental rendering type of this primitive: whether it is points, lines, or polygons.
|
|
virtual TypeHandle | get_type () const |
|
virtual | PT (GeomPrimitive) make_copy() const |
| virtual void | write_datagram (BamWriter *manager, Datagram &dg) |
| | Writes the contents of this object to the datagram for shipping out to a Bam file.
|
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
|
static void | init_type () |
| static void | register_with_read_factory () |
| | Tells the BamReader how to create objects of type Geom.
|
Protected Member Functions |
| void | fillin (DatagramIterator &scan, BamReader *manager) |
| | This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new GeomPatches.
|
Static Protected Member Functions |
| static TypedWritable * | make_from_bam (const FactoryParams ¶ms) |
| | This function is called by the BamReader's factory when a new object of type Geom is encountered in the Bam file.
|
Friends |
|
class | Geom |
Defines a series of "patches", fixed-size groupings of vertices that must be processed by a tessellation shader.
Definition at line 27 of file geomPatches.h.
If the primitive type is a simple type in which all primitives have the same number of vertices, like patches, returns the number of vertices per primitive.
If the primitive type is a more complex type in which different primitives might have different numbers of vertices, for instance a triangle strip, returns 0.
In the case of GeomPatches, this returns the fixed number that was specified to the constructor.
Reimplemented from GeomPrimitive.
Definition at line 102 of file geomPatches.cxx.
Returns the fundamental rendering type of this primitive: whether it is points, lines, or polygons.
This is used to set up the appropriate antialiasing settings when AntialiasAttrib::M_auto is in effect; it also implies the type of primitive that will be produced when decompose() is called.
Implements GeomPrimitive.
Definition at line 83 of file geomPatches.cxx.