14#ifndef GEOMTRIANGLES_H
15#define GEOMTRIANGLES_H
23class EXPCL_PANDA_GOBJ GeomTriangles :
public GeomPrimitive {
25 explicit GeomTriangles(UsageHint usage_hint);
26 GeomTriangles(
const GeomTriangles ©);
27 virtual ~GeomTriangles();
28 ALLOC_DELETED_CHAIN(GeomTriangles);
31 virtual PT(GeomPrimitive) make_copy()
const;
40 const GeomPrimitivePipelineReader *reader,
44 virtual CPT(GeomPrimitive) doubleside_impl()
const;
45 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...
virtual ConstPointerTo< GeomPrimitive > make_adjacency() const
Adds adjacency information to this primitive.
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 the data for one array of a GeomVertexData structure.
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(),...