23class EXPCL_PANDA_GOBJ GeomTrifans :
public GeomPrimitive {
25 explicit GeomTrifans(UsageHint usage_hint);
26 GeomTrifans(
const GeomTrifans ©);
27 virtual ~GeomTrifans();
28 ALLOC_DELETED_CHAIN(GeomTrifans);
31 virtual PT(GeomPrimitive) make_copy()
const;
37 const GeomPrimitivePipelineReader *reader,
41 virtual CPT(GeomPrimitive) decompose_impl()
const;
54 static void init_type() {
55 GeomPrimitive::init_type();
57 GeomPrimitive::get_class_type());
60 return get_class_type();
62 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...
virtual bool draw(GraphicsStateGuardianBase *gsg, const GeomPrimitivePipelineReader *reader, bool force) const
Calls the appropriate method on the GSG to draw the primitive.
virtual PrimitiveType get_primitive_type() const
Returns the fundamental rendering type of this primitive: whether it is points, lines,...
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(),...