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

TransparencyAttrib Class Reference

#include <transparencyAttrib.h>

Inheritance diagram for TransparencyAttrib:

RenderAttrib TypedWritableReferenceCount TypedWritable ReferenceCount TypedObject List of all members.

Public Member Functions

virtual void issue (GraphicsStateGuardianBase *gsg) const
virtual void output (ostream &out) const
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 ()

Protected Member Functions

virtual int compare_to_impl (const RenderAttrib *other) const
virtual RenderAttribmake_default_impl () const
void fillin (DatagramIterator &scan, BamReader *manager)

Static Protected Member Functions

TypedWritablemake_from_bam (const FactoryParams &params)

Private Member Functions

INLINE TransparencyAttrib (Mode mode=M_none)
INLINE Mode get_mode () const

Private Attributes

PUBLISHED __pad0__: enum Mode { M_none
PUBLISHED M_alpha
PUBLISHED M_alpha_sorted
PUBLISHED M_multisample
PUBLISHED M_multisample_mask
PUBLISHED M_binary
PUBLISHED M_dual
PUBLISHED __pad1__: static CPT(RenderAttrib) make(Mode mode)
Mode _mode

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

INLINE TransparencyAttrib::TransparencyAttrib Mode  mode = M_none  )  [private]
 


Member Function Documentation

int TransparencyAttrib::compare_to_impl const RenderAttrib other  )  const [protected, virtual]
 

Reimplemented from RenderAttrib.

Definition at line 109 of file transparencyAttrib.cxx.

References _mode, and DCAST_INTO_R.

void TransparencyAttrib::fillin DatagramIterator scan,
BamReader manager
[protected]
 

Reimplemented from RenderAttrib.

Definition at line 183 of file transparencyAttrib.cxx.

References _mode, RenderAttrib::fillin(), and DatagramIterator::get_int8().

Referenced by make_from_bam().

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

Reimplemented from RenderAttrib.

Definition at line 89 of file transparencyAttrib.h.

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

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

Reimplemented from RenderAttrib.

Definition at line 78 of file transparencyAttrib.h.

Referenced by NodePath::clear_transparency(), RenderState::determine_transparency(), NodePath::get_transparency(), NodePath::has_transparency(), and register_with_read_factory().

INLINE Mode TransparencyAttrib::get_mode  )  const [private]
 

Referenced by CullResult::add_object(), RenderState::determine_bin_index(), GLGraphicsStateGuardian::draw_sprite(), DXGraphicsStateGuardian8::draw_sprite(), DXGraphicsStateGuardian7::draw_sprite(), CRGraphicsStateGuardian::draw_sprite(), NodePath::get_transparency(), GraphicsStateGuardian::issue_transparency(), and output().

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

Reimplemented from RenderAttrib.

Definition at line 86 of file transparencyAttrib.h.

References RenderAttrib::get_class_type().

Referenced by output().

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

Reimplemented from RenderAttrib.

Definition at line 81 of file transparencyAttrib.h.

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

Referenced by init_libpgraph().

void TransparencyAttrib::issue GraphicsStateGuardianBase gsg  )  const [virtual]
 

Reimplemented from RenderAttrib.

Definition at line 50 of file transparencyAttrib.cxx.

References GraphicsStateGuardianBase::issue_transparency().

RenderAttrib * TransparencyAttrib::make_default_impl  )  const [protected, virtual]
 

Implements RenderAttrib.

Definition at line 127 of file transparencyAttrib.cxx.

TypedWritable * TransparencyAttrib::make_from_bam const FactoryParams params  )  [static, protected]
 

Definition at line 164 of file transparencyAttrib.cxx.

References fillin(), params, and parse_params().

Referenced by register_with_read_factory().

void TransparencyAttrib::output ostream &  out  )  const [virtual]
 

Definition at line 60 of file transparencyAttrib.cxx.

References get_mode(), get_type(), M_alpha, M_alpha_sorted, M_binary, M_dual, M_multisample, M_multisample_mask, and RenderAttrib::M_none.

void TransparencyAttrib::register_with_read_factory  )  [static]
 

Definition at line 138 of file transparencyAttrib.cxx.

References get_class_type(), BamReader::get_factory(), make_from_bam(), and Factory< TypedWritable >::register_factory().

Referenced by init_libpgraph().

void TransparencyAttrib::write_datagram BamWriter manager,
Datagram dg
[virtual]
 

Reimplemented from RenderAttrib.

Definition at line 149 of file transparencyAttrib.cxx.

References _mode, Datagram::add_int8(), and RenderAttrib::write_datagram().


Member Data Documentation

PUBLISHED TransparencyAttrib::__pad0__ [private]
 

Reimplemented from RenderAttrib.

Definition at line 41 of file transparencyAttrib.h.

PUBLISHED TransparencyAttrib::__pad1__ [private]
 

Definition at line 54 of file transparencyAttrib.h.

Mode TransparencyAttrib::_mode [private]
 

Definition at line 67 of file transparencyAttrib.h.

Referenced by compare_to_impl(), fillin(), and write_datagram().

TypeHandle TransparencyAttrib::_type_handle [static, private]
 

Reimplemented from RenderAttrib.

Definition at line 27 of file transparencyAttrib.cxx.

PUBLISHED TransparencyAttrib::M_alpha [private]
 

Definition at line 41 of file transparencyAttrib.h.

Referenced by CPT(), RenderState::determine_bin_index(), BaseParticleRenderer::enable_alpha(), PGFrameStyle::generate_into(), output(), DXGraphicsStateGuardian7::prepare_texture(), PT(), GLGraphicsStateGuardian::set_blend_mode(), DXGraphicsStateGuardian8::set_blend_mode(), CRGraphicsStateGuardian::set_blend_mode(), NodePath::set_transparency(), and EggLoader::setup_bucket().

PUBLISHED TransparencyAttrib::M_alpha_sorted [private]
 

Definition at line 41 of file transparencyAttrib.h.

Referenced by RenderState::determine_bin_index(), output(), DXGraphicsStateGuardian7::prepare_texture(), GLGraphicsStateGuardian::set_blend_mode(), DXGraphicsStateGuardian8::set_blend_mode(), and CRGraphicsStateGuardian::set_blend_mode().

PUBLISHED TransparencyAttrib::M_binary [private]
 

Definition at line 41 of file transparencyAttrib.h.

Referenced by CullResult::add_object(), output(), DXGraphicsStateGuardian7::prepare_texture(), GLGraphicsStateGuardian::set_blend_mode(), DXGraphicsStateGuardian8::set_blend_mode(), CRGraphicsStateGuardian::set_blend_mode(), and EggLoader::setup_bucket().

PUBLISHED TransparencyAttrib::M_dual [private]
 

Definition at line 41 of file transparencyAttrib.h.

Referenced by CullResult::add_object(), RenderState::determine_bin_index(), output(), DXGraphicsStateGuardian7::prepare_texture(), GLGraphicsStateGuardian::set_blend_mode(), DXGraphicsStateGuardian8::set_blend_mode(), and EggLoader::setup_bucket().

PUBLISHED TransparencyAttrib::M_multisample [private]
 

Definition at line 41 of file transparencyAttrib.h.

Referenced by output(), DXGraphicsStateGuardian7::prepare_texture(), GLGraphicsStateGuardian::set_blend_mode(), DXGraphicsStateGuardian8::set_blend_mode(), CRGraphicsStateGuardian::set_blend_mode(), and EggLoader::setup_bucket().

PUBLISHED TransparencyAttrib::M_multisample_mask [private]
 

Definition at line 41 of file transparencyAttrib.h.

Referenced by output(), DXGraphicsStateGuardian7::prepare_texture(), GLGraphicsStateGuardian::set_blend_mode(), DXGraphicsStateGuardian8::set_blend_mode(), CRGraphicsStateGuardian::set_blend_mode(), and EggLoader::setup_bucket().


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