Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

SpheretexReflector Class Reference

#include <spheretexReflector.h>

Inheritance diagram for SpheretexReflector:

CasterShader FrustumShader Shader ReferenceCount Configurable TypedObject List of all members.

Public Member Functions

 SpheretexReflector (int size=256)
 ~SpheretexReflector (void)
virtual void pre_apply (Node *node, const AllAttributesWrapper &init_state, const AllTransitionsWrapper &net_trans, GraphicsStateGuardian *gsg)
virtual void apply (Node *node, const AllAttributesWrapper &init_state, const AllTransitionsWrapper &net_trans, GraphicsStateGuardian *gsg)
INLINE void set_size (int size)
INLINE int get_size (void) const
INLINE bool is_reflector (void) const
INLINE void make_reflector (void)
INLINE void make_refractor (void)
INLINE void set_near (float fnear)
INLINE float get_near (void) const
INLINE void set_far (float ffar)
INLINE float get_far (void) const
virtual void set_priority (int priority)
virtual void set_multipass (bool on)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Protected Attributes

SpheretexShader _spheretex_shader
int _size
bool _is_reflector
float _fnear
float _ffar

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

SpheretexReflector::SpheretexReflector int  size = 256  ) 
 

Definition at line 46 of file spheretexReflector.cxx.

References _ffar, _fnear, _is_reflector, _size, _spheretex_shader, Texture::FT_linear, SpheretexShader::set_blend_mode(), set_size(), SpheretexShader::set_texture(), texture, and Texture::WM_clamp.

SpheretexReflector::~SpheretexReflector void   ) 
 

Definition at line 71 of file spheretexReflector.cxx.


Member Function Documentation

void SpheretexReflector::apply Node *  node,
const AllAttributesWrapper &  init_state,
const AllTransitionsWrapper &  net_trans,
GraphicsStateGuardian gsg
[virtual]
 

Reimplemented from Shader.

Definition at line 226 of file spheretexReflector.cxx.

References _spheretex_shader, SpheretexShader::apply(), and Shader::apply().

virtual TypeHandle SpheretexReflector::force_init_type void   )  [inline, virtual]
 

Reimplemented from CasterShader.

Definition at line 92 of file spheretexReflector.h.

References CasterShader::get_class_type(), and CasterShader::init_type().

TypeHandle SpheretexReflector::get_class_type void   )  [inline, static]
 

Reimplemented from CasterShader.

Definition at line 81 of file spheretexReflector.h.

Referenced by ConfigureFn().

INLINE float SpheretexReflector::get_far void   )  const [inline]
 

Definition at line 63 of file spheretexReflector.h.

INLINE float SpheretexReflector::get_near void   )  const [inline]
 

Definition at line 61 of file spheretexReflector.h.

INLINE int SpheretexReflector::get_size void   )  const [inline]
 

Definition at line 54 of file spheretexReflector.h.

virtual TypeHandle SpheretexReflector::get_type void   )  const [inline, virtual]
 

Reimplemented from CasterShader.

Definition at line 89 of file spheretexReflector.h.

References CasterShader::get_class_type().

void SpheretexReflector::init_type void   )  [inline, static]
 

Reimplemented from CasterShader.

Definition at line 84 of file spheretexReflector.h.

References CasterShader::get_class_type(), CasterShader::init_type(), and register_type().

Referenced by ConfigureFn().

INLINE bool SpheretexReflector::is_reflector void   )  const [inline]
 

Definition at line 56 of file spheretexReflector.h.

INLINE void SpheretexReflector::make_reflector void   )  [inline]
 

Definition at line 57 of file spheretexReflector.h.

INLINE void SpheretexReflector::make_refractor void   )  [inline]
 

Definition at line 58 of file spheretexReflector.h.

void SpheretexReflector::pre_apply Node *  node,
const AllAttributesWrapper &  init_state,
const AllTransitionsWrapper &  net_trans,
GraphicsStateGuardian gsg
[virtual]
 

Reimplemented from Shader.

Definition at line 104 of file spheretexReflector.cxx.

References CasterShader::_casters, _ffar, _fnear, _is_reflector, _size, _spheretex_shader, GraphicsStateGuardian::clear(), Colorf, Texture::copy(), GraphicsStateGuardian::get_coordinate_system(), CasterShader::get_num_casters(), GraphicsStateGuardian::get_render_buffer(), SpheretexShader::get_texture(), look_at(), GraphicsStateGuardian::pop_display_region(), GraphicsStateGuardian::pop_frame_buffer(), PT, GraphicsStateGuardian::push_display_region(), GraphicsStateGuardian::push_frame_buffer(), GraphicsStateGuardian::set_color_clear_value(), LensNode::set_lens(), RenderBuffer::T_back, and RenderBuffer::T_depth.

INLINE void SpheretexReflector::set_far float  ffar  )  [inline]
 

Definition at line 62 of file spheretexReflector.h.

void SpheretexReflector::set_multipass bool  on  )  [virtual]
 

Reimplemented from Shader.

Definition at line 92 of file spheretexReflector.cxx.

References _spheretex_shader, and Shader::set_multipass().

INLINE void SpheretexReflector::set_near float  fnear  )  [inline]
 

Definition at line 60 of file spheretexReflector.h.

void SpheretexReflector::set_priority int  priority  )  [virtual]
 

Reimplemented from Shader.

Definition at line 80 of file spheretexReflector.cxx.

References _spheretex_shader, and Shader::set_priority().

INLINE void SpheretexReflector::set_size int  size  )  [inline]
 

Definition at line 53 of file spheretexReflector.h.

Referenced by SpheretexReflector().


Member Data Documentation

float SpheretexReflector::_ffar [protected]
 

Definition at line 77 of file spheretexReflector.h.

Referenced by pre_apply(), and SpheretexReflector().

float SpheretexReflector::_fnear [protected]
 

Definition at line 76 of file spheretexReflector.h.

Referenced by pre_apply(), and SpheretexReflector().

bool SpheretexReflector::_is_reflector [protected]
 

Definition at line 75 of file spheretexReflector.h.

Referenced by pre_apply(), and SpheretexReflector().

int SpheretexReflector::_size [protected]
 

Definition at line 74 of file spheretexReflector.h.

Referenced by pre_apply(), and SpheretexReflector().

SpheretexShader SpheretexReflector::_spheretex_shader [protected]
 

Definition at line 73 of file spheretexReflector.h.

Referenced by apply(), pre_apply(), set_multipass(), set_priority(), and SpheretexReflector().

TypeHandle SpheretexReflector::_type_handle [static, private]
 

Reimplemented from CasterShader.

Definition at line 39 of file spheretexReflector.cxx.


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:13:36 2003 for Panda by doxygen1.3