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

ProjtexShader Class Reference

#include <projtexShader.h>

Inheritance diagram for ProjtexShader:

FrustumShader Shader ReferenceCount Configurable TypedObject SpotlightShader List of all members.

Public Member Functions

 ProjtexShader (Texture *texture=NULL, ColorBlendProperty::Mode mode=ColorBlendProperty::M_multiply)
 ~ProjtexShader ()
virtual void config (void)
virtual void apply (Node *node, const AllAttributesWrapper &init_state, const AllTransitionsWrapper &net_trans, GraphicsStateGuardian *gsg)
INLINE void set_texture (Texture *texture)
INLINE Textureget_texture (void)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Protected Member Functions

 PT (Texture) _texture

Protected Attributes

ColorBlendProperty::Mode _blend

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

ProjtexShader::ProjtexShader Texture texture = NULL,
ColorBlendProperty::Mode  mode = ColorBlendProperty::M_multiply
 

Definition at line 45 of file projtexShader.cxx.

References mode, set_texture(), and texture.

ProjtexShader::~ProjtexShader  )  [inline]
 

Definition at line 44 of file projtexShader.h.


Member Function Documentation

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

Reimplemented from Shader.

Definition at line 70 of file projtexShader.cxx.

References _blend, FrustumShader::_frusta, Shader::_priority, Shader::_viz, Shader::apply(), DCAST, FrustumShader::get_num_frusta(), NULL, and t.

void ProjtexShader::config void   )  [virtual]
 

Reimplemented from Configurable.

Reimplemented in SpotlightShader.

Definition at line 57 of file projtexShader.cxx.

References Configurable::config(), and NULL.

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

Reimplemented from Shader.

Reimplemented in SpotlightShader.

Definition at line 76 of file projtexShader.h.

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

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

Reimplemented from FrustumShader.

Reimplemented in SpotlightShader.

Definition at line 65 of file projtexShader.h.

Referenced by ConfigureFn(), SpotlightShader::force_init_type(), SpotlightShader::get_type(), and SpotlightShader::init_type().

INLINE Texture* ProjtexShader::get_texture void   )  [inline]
 

Definition at line 56 of file projtexShader.h.

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

Reimplemented from FrustumShader.

Reimplemented in SpotlightShader.

Definition at line 73 of file projtexShader.h.

References FrustumShader::get_class_type().

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

Reimplemented from FrustumShader.

Reimplemented in SpotlightShader.

Definition at line 68 of file projtexShader.h.

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

Referenced by ConfigureFn(), SpotlightShader::force_init_type(), and SpotlightShader::init_type().

ProjtexShader::PT Texture   )  [protected]
 

INLINE void ProjtexShader::set_texture Texture texture  )  [inline]
 

Definition at line 51 of file projtexShader.h.

References Configurable::make_dirty(), and texture.

Referenced by ProjtexShader(), and SpotlightShader::SpotlightShader().


Member Data Documentation

ColorBlendProperty::Mode ProjtexShader::_blend [protected]
 

Definition at line 61 of file projtexShader.h.

Referenced by apply().

TypeHandle ProjtexShader::_type_handle [static, private]
 

Reimplemented from FrustumShader.

Reimplemented in SpotlightShader.

Definition at line 38 of file projtexShader.cxx.


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