15 #ifndef TEXGENATTRIB_H
16 #define TEXGENATTRIB_H
18 #include "pandabase.h"
21 #include "renderAttrib.h"
22 #include "textureStage.h"
24 #include "pointerTo.h"
42 typedef RenderAttrib::TexGenMode Mode;
46 INLINE TexGenAttrib(
const TexGenAttrib ©);
49 virtual ~TexGenAttrib();
60 bool is_empty()
const;
66 INLINE
int get_geom_rendering(
int geom_rendering)
const;
69 virtual void output(ostream &out)
const;
72 virtual int compare_to_impl(
const RenderAttrib *other)
const;
73 virtual size_t get_hash_impl()
const;
81 void record_stage(
TextureStage *stage, ModeDef &mode_def);
86 INLINE
int compare_to(
const ModeDef &other)
const;
106 int _num_point_sprites;
112 int _point_geom_rendering;
118 static int get_class_slot() {
121 virtual int get_slot()
const {
122 return get_class_slot();
126 static void register_with_read_factory();
138 static void init_type() {
139 RenderAttrib::init_type();
140 register_type(_type_handle,
"TexGenAttrib",
141 RenderAttrib::get_class_type());
142 _attrib_slot =
register_slot(_type_handle, 100, make_default);
145 return get_class_type();
147 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
151 static int _attrib_slot;
154 #include "texGenAttrib.I"
static int register_slot(TypeHandle type_handle, int sort, RenderAttribRegistry::MakeDefaultFunc *make_default_func)
Adds the indicated TypeHandle to the registry, if it is not there already, and returns a unique slot ...
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...
Base class for objects that can be written to and read from Bam files.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
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.
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()...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
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...