14 #ifndef TEXGENATTRIB_H 15 #define TEXGENATTRIB_H 37 typedef RenderAttrib::TexGenMode Mode;
55 bool is_empty()
const;
59 const LTexCoord3 &get_constant_value(
TextureStage *stage)
const;
61 INLINE
int get_geom_rendering(
int geom_rendering)
const;
64 virtual void output(std::ostream &out)
const;
67 virtual int compare_to_impl(
const RenderAttrib *other)
const;
68 virtual size_t get_hash_impl()
const;
75 void record_stage(
TextureStage *stage, ModeDef &mode_def);
80 INLINE
int compare_to(
const ModeDef &other)
const;
82 std::string _source_name;
84 LTexCoord3 _constant_value;
100 int _num_point_sprites;
105 int _point_geom_rendering;
111 static int get_class_slot() {
114 virtual int get_slot()
const {
115 return get_class_slot();
117 MAKE_PROPERTY(class_slot, get_class_slot);
120 static void register_with_read_factory();
132 static void init_type() {
133 RenderAttrib::init_type();
135 RenderAttrib::get_class_type());
139 return get_class_type();
141 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
145 static int _attrib_slot;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is our own Panda specialization on the default STL map.
This is the base class for a number of render attributes (other than transform) that may be set on sc...
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Base class for objects that can be written to and read from Bam files.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This is our own Panda specialization on the default STL list.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
virtual int complete_pointers(TypedWritable **p_list, BamReader *manager)
Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().
static int register_slot(TypeHandle type_handle, int sort, RenderAttrib *default_attrib)
Adds the indicated TypeHandle to the registry, if it is not there already, and returns a unique slot ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An STL function object class, this is intended to be used on any ordered collection of class objects ...
A class to retrieve the individual data elements previously stored in a Datagram.
TypeHandle is the identifier used to differentiate C++ class types.
Defines the properties of a named stage of the multitexture pipeline.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
Computes texture coordinates for geometry automatically based on vertex position and/or normal.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...