14#ifndef GEOMTRIANGLESADJACENCY_H
15#define GEOMTRIANGLESADJACENCY_H
25class EXPCL_PANDA_GOBJ GeomTrianglesAdjacency :
public GeomPrimitive {
27 explicit GeomTrianglesAdjacency(UsageHint usage_hint);
28 GeomTrianglesAdjacency(
const GeomTrianglesAdjacency ©);
29 virtual ~GeomTrianglesAdjacency();
30 ALLOC_DELETED_CHAIN(GeomTrianglesAdjacency);
33 virtual PT(GeomPrimitive) make_copy()
const;
41 const GeomPrimitivePipelineReader *reader,
45 virtual CPT(GeomPrimitive) doubleside_impl()
const;
46 virtual CPT(GeomPrimitive) reverse_impl()
const;
58 static void init_type() {
59 GeomPrimitive::init_type();
61 GeomPrimitive::get_class_type());
64 return get_class_type();
66 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
An instance of this class is passed to the Factory when requesting it to do its business and construc...
get_geom_rendering
Returns the set of GeomRendering bits that represent the rendering properties required to properly re...
get_num_vertices_per_primitive
If the primitive type is a simple type in which all primitives have the same number of vertices,...
virtual PrimitiveType get_primitive_type() const
Returns the fundamental rendering type of this primitive: whether it is points, lines,...
virtual bool draw(GraphicsStateGuardianBase *gsg, const GeomPrimitivePipelineReader *reader, bool force) const
Calls the appropriate method on the GSG to draw the primitive.
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...
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.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...