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

TextureApplyAttrib Class Reference

#include <textureApplyAttrib.h>

Inheritance diagram for TextureApplyAttrib:

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

Private Attributes

PUBLISHED __pad0__: enum Mode { M_modulate
PUBLISHED M_decal
PUBLISHED M_blend
PUBLISHED M_replace
PUBLISHED M_add
PUBLISHED __pad1__: static CPT(RenderAttrib) make(Mode mode)
Mode _mode

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

INLINE TextureApplyAttrib::TextureApplyAttrib Mode  mode = M_modulate  )  [private]
 


Member Function Documentation

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

Reimplemented from RenderAttrib.

Definition at line 101 of file textureApplyAttrib.cxx.

References _mode, and DCAST_INTO_R.

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

Reimplemented from RenderAttrib.

Definition at line 175 of file textureApplyAttrib.cxx.

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

Referenced by make_from_bam().

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

Reimplemented from RenderAttrib.

Definition at line 80 of file textureApplyAttrib.h.

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

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

Reimplemented from RenderAttrib.

Definition at line 69 of file textureApplyAttrib.h.

Referenced by register_with_read_factory().

INLINE Mode TextureApplyAttrib::get_mode  )  const [private]
 

Referenced by GLGraphicsStateGuardian::issue_texture_apply(), CRGraphicsStateGuardian::issue_texture_apply(), and output().

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

Reimplemented from RenderAttrib.

Definition at line 77 of file textureApplyAttrib.h.

References RenderAttrib::get_class_type().

Referenced by output().

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

Reimplemented from RenderAttrib.

Definition at line 72 of file textureApplyAttrib.h.

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

Referenced by init_libpgraph().

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

Reimplemented from RenderAttrib.

Definition at line 50 of file textureApplyAttrib.cxx.

References GraphicsStateGuardianBase::issue_texture_apply().

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

Implements RenderAttrib.

Definition at line 119 of file textureApplyAttrib.cxx.

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

Definition at line 156 of file textureApplyAttrib.cxx.

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

Referenced by register_with_read_factory().

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

Definition at line 60 of file textureApplyAttrib.cxx.

References get_mode(), get_type(), M_add, M_blend, M_decal, and M_replace.

void TextureApplyAttrib::register_with_read_factory  )  [static]
 

Definition at line 130 of file textureApplyAttrib.cxx.

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

Referenced by init_libpgraph().

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

Reimplemented from RenderAttrib.

Definition at line 141 of file textureApplyAttrib.cxx.

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


Member Data Documentation

PUBLISHED TextureApplyAttrib::__pad0__ [private]
 

Reimplemented from RenderAttrib.

Definition at line 34 of file textureApplyAttrib.h.

PUBLISHED TextureApplyAttrib::__pad1__ [private]
 

Definition at line 45 of file textureApplyAttrib.h.

Mode TextureApplyAttrib::_mode [private]
 

Definition at line 58 of file textureApplyAttrib.h.

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

TypeHandle TextureApplyAttrib::_type_handle [static, private]
 

Reimplemented from RenderAttrib.

Definition at line 27 of file textureApplyAttrib.cxx.

PUBLISHED TextureApplyAttrib::M_add [private]
 

Definition at line 34 of file textureApplyAttrib.h.

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

PUBLISHED TextureApplyAttrib::M_blend [private]
 

Definition at line 34 of file textureApplyAttrib.h.

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

PUBLISHED TextureApplyAttrib::M_decal [private]
 

Definition at line 34 of file textureApplyAttrib.h.

Referenced by CPT(), GLGraphicsStateGuardian::draw_texture(), GLGraphicsStateGuardian::get_texture_apply_mode_type(), CRGraphicsStateGuardian::get_texture_apply_mode_type(), output(), and DXGraphicsStateGuardian7::prepare_texture().

PUBLISHED TextureApplyAttrib::M_replace [private]
 

Definition at line 34 of file textureApplyAttrib.h.

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


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