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

ColorBlendAttrib Class Reference

#include <colorBlendAttrib.h>

Inheritance diagram for ColorBlendAttrib:

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 ColorBlendAttrib (Mode mode=M_none)
INLINE Mode get_mode () const

Private Attributes

PUBLISHED __pad0__: enum Mode { M_none
PUBLISHED M_multiply
PUBLISHED M_add
PUBLISHED M_multiply_add
PUBLISHED __pad1__: static CPT(RenderAttrib) make(Mode mode)
Mode _mode

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

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


Member Function Documentation

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

Reimplemented from RenderAttrib.

Definition at line 97 of file colorBlendAttrib.cxx.

References _mode, and DCAST_INTO_R.

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

Reimplemented from RenderAttrib.

Definition at line 171 of file colorBlendAttrib.cxx.

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

Referenced by make_from_bam().

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

Reimplemented from RenderAttrib.

Definition at line 81 of file colorBlendAttrib.h.

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

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

Reimplemented from RenderAttrib.

Definition at line 70 of file colorBlendAttrib.h.

Referenced by register_with_read_factory().

INLINE Mode ColorBlendAttrib::get_mode  )  const [private]
 

Referenced by GraphicsStateGuardian::issue_color_blend(), and output().

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

Reimplemented from RenderAttrib.

Definition at line 78 of file colorBlendAttrib.h.

References RenderAttrib::get_class_type().

Referenced by output().

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

Reimplemented from RenderAttrib.

Definition at line 73 of file colorBlendAttrib.h.

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

Referenced by init_libpgraph().

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

Reimplemented from RenderAttrib.

Definition at line 50 of file colorBlendAttrib.cxx.

References GraphicsStateGuardianBase::issue_color_blend().

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

Implements RenderAttrib.

Definition at line 115 of file colorBlendAttrib.cxx.

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

Definition at line 152 of file colorBlendAttrib.cxx.

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

Referenced by register_with_read_factory().

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

Definition at line 60 of file colorBlendAttrib.cxx.

References get_mode(), get_type(), M_add, M_multiply, M_multiply_add, and RenderAttrib::M_none.

void ColorBlendAttrib::register_with_read_factory  )  [static]
 

Definition at line 126 of file colorBlendAttrib.cxx.

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

Referenced by init_libpgraph().

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

Reimplemented from RenderAttrib.

Definition at line 137 of file colorBlendAttrib.cxx.

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


Member Data Documentation

PUBLISHED ColorBlendAttrib::__pad0__ [private]
 

Reimplemented from RenderAttrib.

Definition at line 35 of file colorBlendAttrib.h.

PUBLISHED ColorBlendAttrib::__pad1__ [private]
 

Definition at line 46 of file colorBlendAttrib.h.

Mode ColorBlendAttrib::_mode [private]
 

Definition at line 59 of file colorBlendAttrib.h.

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

TypeHandle ColorBlendAttrib::_type_handle [static, private]
 

Reimplemented from RenderAttrib.

Definition at line 27 of file colorBlendAttrib.cxx.

PUBLISHED ColorBlendAttrib::M_add [private]
 

Definition at line 35 of file colorBlendAttrib.h.

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

PUBLISHED ColorBlendAttrib::M_multiply [private]
 

Definition at line 35 of file colorBlendAttrib.h.

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

PUBLISHED ColorBlendAttrib::M_multiply_add [private]
 

Definition at line 35 of file colorBlendAttrib.h.

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


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