16 #include "bamWriter.h" 17 #include "bamReader.h" 19 #include "datagramIterator.h" 33 return new CData(*
this);
44 _color.write_datagram(dg);
56 _color.read_datagram(scan);
100 static const LColor white(1, 1, 1, 1);
114 static const LVecBase3 no_atten(1, 0, 0);
150 if (cdata->_viz_geom_stale) {
153 cdata_w->_viz_geom =
new GeomNode(
"viz");
154 fill_viz_geom(cdata_w->_viz_geom);
155 cdata_w->_viz_geom_stale =
false;
157 return cdata->_viz_geom;
This is the base class for all three-component vectors and points.
virtual const LColor & get_specular_color() const
Returns the color of specular highlights generated by the light.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
void read_cdata(DatagramIterator &scan, PipelineCyclerBase &cycler)
Reads in the indicated CycleData object.
A single page of data maintained by a PipelineCycler.
void write_cdata(Datagram &packet, const PipelineCyclerBase &cycler)
Writes out the indicated CycleData object.
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
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 ...
PN_int32 get_int32()
Extracts a signed 32-bit integer.
This is a 4-by-4 transform matrix.
virtual bool get_vector_to_light(LVector3 &result, const LPoint3 &from_object_point, const LMatrix4 &to_object_space)
Computes the vector from a particular vertex to this light.
GeomNode * get_viz()
Returns a GeomNode that may be rendered to visualize the Light.
virtual bool is_ambient_light() const
Returns true if this is an AmbientLight, false if it is some other kind of light. ...
This template class calls PipelineCycler::read() in the constructor and PipelineCycler::release_read(...
virtual const LVecBase3 & get_attenuation() const
Returns the terms of the attenuation equation for the light.
This template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
This is the base class for all three-component vectors and points.
virtual PN_stdfloat get_exponent() const
For spotlights, returns the exponent that controls the amount of light falloff from the center of the...
void add_int32(PN_int32 value)
Adds a signed 32-bit integer to the datagram.
A class to retrieve the individual data elements previously stored in a Datagram. ...
TypeHandle is the identifier used to differentiate C++ class types.
This is a sequence number that increments monotonically.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
A node that holds Geom objects, renderable pieces of geometry.