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

AlphaTestAttrib Class Reference

#include <alphaTestAttrib.h>

Inheritance diagram for AlphaTestAttrib:

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 AlphaTestAttrib (PandaCompareFunc mode=M_always, float reference_alpha=1.0f)
INLINE float get_reference_alpha () const
INLINE PandaCompareFunc get_mode () const

Private Attributes

PUBLISHED __pad0__: static CPT(RenderAttrib) make(PandaCompareFunc mode
PUBLISHED float reference_alpha
PandaCompareFunc _mode
float _reference_alpha

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

INLINE AlphaTestAttrib::AlphaTestAttrib PandaCompareFunc  mode = M_always,
float  reference_alpha = 1.0f
[private]
 


Member Function Documentation

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

Reimplemented from RenderAttrib.

Definition at line 83 of file alphaTestAttrib.cxx.

References _mode, _reference_alpha, and DCAST_INTO_R.

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

Reimplemented from RenderAttrib.

Definition at line 163 of file alphaTestAttrib.cxx.

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

Referenced by make_from_bam().

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

Reimplemented from RenderAttrib.

Definition at line 75 of file alphaTestAttrib.h.

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

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

Reimplemented from RenderAttrib.

Definition at line 64 of file alphaTestAttrib.h.

Referenced by register_with_read_factory().

INLINE PandaCompareFunc AlphaTestAttrib::get_mode  )  const [private]
 

Referenced by GLGraphicsStateGuardian::issue_alpha_test(), DXGraphicsStateGuardian8::issue_alpha_test(), and DXGraphicsStateGuardian7::prepare_texture().

INLINE float AlphaTestAttrib::get_reference_alpha  )  const [private]
 

Referenced by GLGraphicsStateGuardian::issue_alpha_test(), DXGraphicsStateGuardian8::issue_alpha_test(), and DXGraphicsStateGuardian7::prepare_texture().

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

Reimplemented from RenderAttrib.

Definition at line 72 of file alphaTestAttrib.h.

References RenderAttrib::get_class_type().

Referenced by output().

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

Reimplemented from RenderAttrib.

Definition at line 67 of file alphaTestAttrib.h.

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

Referenced by init_libpgraph().

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

Reimplemented from RenderAttrib.

Definition at line 51 of file alphaTestAttrib.cxx.

References GraphicsStateGuardianBase::issue_alpha_test().

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

Implements RenderAttrib.

Definition at line 106 of file alphaTestAttrib.cxx.

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

Definition at line 144 of file alphaTestAttrib.cxx.

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

Referenced by register_with_read_factory().

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

Definition at line 61 of file alphaTestAttrib.cxx.

References _mode, _reference_alpha, get_type(), and RenderAttrib::output_comparefunc().

void AlphaTestAttrib::register_with_read_factory  )  [static]
 

Definition at line 117 of file alphaTestAttrib.cxx.

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

Referenced by init_libpgraph().

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

Reimplemented from RenderAttrib.

Definition at line 128 of file alphaTestAttrib.cxx.

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


Member Data Documentation

PUBLISHED AlphaTestAttrib::__pad0__ [private]
 

Reimplemented from RenderAttrib.

Definition at line 38 of file alphaTestAttrib.h.

PandaCompareFunc AlphaTestAttrib::_mode [private]
 

Definition at line 52 of file alphaTestAttrib.h.

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

float AlphaTestAttrib::_reference_alpha [private]
 

Definition at line 53 of file alphaTestAttrib.h.

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

TypeHandle AlphaTestAttrib::_type_handle [static, private]
 

Reimplemented from RenderAttrib.

Definition at line 27 of file alphaTestAttrib.cxx.

PUBLISHED float AlphaTestAttrib::reference_alpha [private]
 

Definition at line 38 of file alphaTestAttrib.h.


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