21 TypeHandle GeomTrianglesAdjacency::_type_handle;
26 GeomTrianglesAdjacency::
27 GeomTrianglesAdjacency(GeomTrianglesAdjacency::UsageHint usage_hint) :
35 GeomTrianglesAdjacency::
44 GeomTrianglesAdjacency::
45 ~GeomTrianglesAdjacency() {
64 GeomPrimitive::PrimitiveType GeomTrianglesAdjacency::
65 get_primitive_type()
const {
73 int GeomTrianglesAdjacency::
74 get_geom_rendering()
const {
85 int GeomTrianglesAdjacency::
86 get_num_vertices_per_primitive()
const {
93 bool GeomTrianglesAdjacency::
96 return gsg->draw_triangles_adj(reader, force);
103 doubleside_impl()
const {
114 bool needs_rotate =
false;
115 switch (from.get_shade_model()) {
116 case SM_flat_first_vertex:
117 case SM_flat_last_vertex:
126 for (
int i = from.get_num_vertices() - 1; i >= 0; --i) {
127 reversed->add_vertex(from.get_vertex(i));
143 reverse_impl()
const {
148 reversed->clear_vertices();
150 for (
int i = from.get_num_vertices() - 1; i >= 0; --i) {
151 reversed->add_vertex(from.get_vertex(i));
154 switch (from.get_shade_model()) {
155 case SM_flat_first_vertex:
156 reversed->set_shade_model(SM_flat_last_vertex);
160 case SM_flat_last_vertex:
161 reversed->set_shade_model(SM_flat_first_vertex);
175 void GeomTrianglesAdjacency::
176 register_with_read_factory() {
192 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.
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...
get_geom_rendering
Returns the set of GeomRendering bits that represent the rendering properties required to properly re...
Defines a series of disconnected triangles, with adjacency information.
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.
PT(GeomPrimitive) GeomTrianglesAdjacency
Returns the fundamental rendering type of this primitive: whether it is points, lines,...
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.