#include <fog.h>
Inheritance diagram for Fog:
Public Member Functions | |
virtual | ~Fog () |
virtual PandaNode * | make_copy () const |
virtual void | xform (const LMatrix4f &mat) |
INLINE Mode | get_mode () const |
INLINE void | set_mode (Mode mode) |
INLINE const Colorf & | get_color () const |
INLINE void | set_color (float r, float g, float b) |
INLINE void | set_color (const Colorf &color) |
INLINE void | set_linear_range (float onset, float opaque) |
INLINE const LPoint3f & | get_linear_onset_point () const |
INLINE void | set_linear_onset_point (float x, float y, float z) |
INLINE void | set_linear_onset_point (const LPoint3f &linear_onset_point) |
INLINE const LPoint3f & | get_linear_opaque_point () const |
INLINE void | set_linear_opaque_point (const LPoint3f &linear_opaque_point) |
INLINE void | set_linear_opaque_point (float x, float y, float z) |
INLINE void | set_linear_fallback (float angle, float onset, float opaque) |
INLINE float | get_exp_density () const |
INLINE void | set_exp_density (float exp_density) |
void | output (ostream &out) const |
void | adjust_to_camera (const TransformState *camera_transform) |
void | get_linear_range (float &onset, float &opaque) |
virtual void | write_datagram (BamWriter *manager, Datagram &dg) |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
Static Public Member Functions | |
void | register_with_read_factory () |
TypeHandle | get_class_type () |
void | init_type () |
Public Attributes | |
PUBLISHED | __pad1__: enum Mode { M_linear |
PUBLISHED | M_exponential |
PUBLISHED | M_exponential_squared |
Protected Member Functions | |
Fog (const Fog ©) | |
void | compute_density () |
void | fillin (DatagramIterator &scan, BamReader *manager) |
Static Protected Member Functions | |
TypedWritable * | make_from_bam (const FactoryParams ¶ms) |
Protected Attributes | |
Mode | _mode |
Colorf | _color |
LPoint3f | _linear_onset_point |
LPoint3f | _linear_opaque_point |
float | _exp_density |
float | _linear_fallback_cosa |
float | _linear_fallback_onset |
float | _linear_fallback_opaque |
float | _transformed_onset |
float | _transformed_opaque |
Private Attributes | |
PUBLISHED | __pad0__: Fog(const string &name) |
Static Private Attributes | |
TypeHandle | _type_handle |
|
Definition at line 78 of file fog.cxx. References _color, _exp_density, _linear_fallback_cosa, _linear_fallback_onset, _linear_fallback_opaque, _linear_onset_point, _linear_opaque_point, _mode, _transformed_onset, and _transformed_opaque. Referenced by make_copy(), and make_from_bam(). |
|
|
|
Definition at line 159 of file fog.cxx. References _linear_fallback_cosa, _linear_fallback_onset, _linear_fallback_opaque, _linear_onset_point, _linear_opaque_point, _transformed_onset, _transformed_opaque, cabs(), PandaNode::CPT(), TransformState::get_mat(), and PandaNode::get_num_parents(). Referenced by CullTraverser::traverse(). |
|
|
|
Reimplemented from PandaNode. Definition at line 265 of file fog.cxx. References _color, _exp_density, _linear_fallback_cosa, _linear_fallback_onset, _linear_fallback_opaque, _linear_onset_point, _linear_opaque_point, _mode, PandaNode::fillin(), DatagramIterator::get_float32(), and DatagramIterator::get_int8(). Referenced by make_from_bam(). |
|
Reimplemented from PandaNode. Definition at line 133 of file fog.h. References PandaNode::get_class_type(), and PandaNode::init_type(). |
|
Reimplemented from PandaNode. Definition at line 122 of file fog.h. Referenced by register_with_read_factory(). |
|
Referenced by GLGraphicsStateGuardian::apply_fog(), DXGraphicsStateGuardian8::apply_fog(), CRGraphicsStateGuardian::apply_fog(), and DXGraphicsStateGuardian7::prepare_texture(). |
|
Referenced by GLGraphicsStateGuardian::apply_fog(), DXGraphicsStateGuardian8::apply_fog(), CRGraphicsStateGuardian::apply_fog(), and DXGraphicsStateGuardian7::prepare_texture(). |
|
|
|
|
|
Definition at line 201 of file fog.cxx. References _transformed_onset, and _transformed_opaque. Referenced by GLGraphicsStateGuardian::apply_fog(), DXGraphicsStateGuardian8::apply_fog(), CRGraphicsStateGuardian::apply_fog(), and DXGraphicsStateGuardian7::prepare_texture(). |
|
Referenced by GLGraphicsStateGuardian::apply_fog(), DXGraphicsStateGuardian8::apply_fog(), CRGraphicsStateGuardian::apply_fog(), and DXGraphicsStateGuardian7::prepare_texture(). |
|
Reimplemented from PandaNode. Definition at line 130 of file fog.h. References PandaNode::get_class_type(). |
|
Reimplemented from PandaNode. Definition at line 125 of file fog.h. References PandaNode::get_class_type(), PandaNode::init_type(), and register_type(). Referenced by init_libpgraph(). |
|
Reimplemented from PandaNode. Definition at line 111 of file fog.cxx. References Fog(). |
|
Reimplemented from PandaNode. Definition at line 246 of file fog.cxx. References fillin(), Fog(), params, and parse_params(). Referenced by register_with_read_factory(). |
|
Reimplemented from PandaNode. Definition at line 134 of file fog.cxx. References _exp_density, _linear_onset_point, _linear_opaque_point, _mode, M_exponential, and M_exponential_squared. Referenced by operator<<(). |
|
Reimplemented from PandaNode. Definition at line 213 of file fog.cxx. References get_class_type(), BamReader::get_factory(), make_from_bam(), and Factory< TypedWritable >::register_factory(). Referenced by init_libpgraph(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from PandaNode. Definition at line 224 of file fog.cxx. References _color, _exp_density, _linear_fallback_cosa, _linear_fallback_onset, _linear_fallback_opaque, _linear_onset_point, _linear_opaque_point, _mode, Datagram::add_float32(), Datagram::add_int8(), and PandaNode::write_datagram(). |
|
Reimplemented from PandaNode. Definition at line 123 of file fog.cxx. References _linear_onset_point, and _linear_opaque_point. |
|
Reimplemented from PandaNode. |
|
Reimplemented from PandaNode. |
|
Definition at line 111 of file fog.h. Referenced by fillin(), Fog(), and write_datagram(). |
|
Definition at line 114 of file fog.h. Referenced by fillin(), Fog(), output(), and write_datagram(). |
|
Definition at line 116 of file fog.h. Referenced by adjust_to_camera(), fillin(), Fog(), and write_datagram(). |
|
Definition at line 117 of file fog.h. Referenced by adjust_to_camera(), fillin(), Fog(), and write_datagram(). |
|
Definition at line 117 of file fog.h. Referenced by adjust_to_camera(), fillin(), Fog(), and write_datagram(). |
|
Definition at line 112 of file fog.h. Referenced by adjust_to_camera(), fillin(), Fog(), output(), write_datagram(), and xform(). |
|
Definition at line 113 of file fog.h. Referenced by adjust_to_camera(), fillin(), Fog(), output(), write_datagram(), and xform(). |
|
Definition at line 110 of file fog.h. Referenced by fillin(), Fog(), output(), and write_datagram(). |
|
Definition at line 119 of file fog.h. Referenced by adjust_to_camera(), Fog(), and get_linear_range(). |
|
Definition at line 119 of file fog.h. Referenced by adjust_to_camera(), Fog(), and get_linear_range(). |
|
Reimplemented from PandaNode. |
|
Definition at line 65 of file fog.h. Referenced by DXGraphicsStateGuardian8::apply_fog(), GLGraphicsStateGuardian::get_fog_mode_type(), DXGraphicsStateGuardian8::get_fog_mode_type(), operator<<(), output(), and DXGraphicsStateGuardian7::prepare_texture(). |
|
Definition at line 65 of file fog.h. Referenced by DXGraphicsStateGuardian8::apply_fog(), GLGraphicsStateGuardian::get_fog_mode_type(), DXGraphicsStateGuardian8::get_fog_mode_type(), operator<<(), output(), and DXGraphicsStateGuardian7::prepare_texture(). |