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

GeomSprite Class Reference

#include <geomSprite.h>

Inheritance diagram for GeomSprite:

Geom dDrawable ReferenceCount WritableConfigurable BoundedObject TypedWritable TypedObject List of all members.

Public Member Functions

 GeomSprite (Texture *tex=(Texture *) NULL, bool alpha_disable=false)
virtual Geommake_copy () const
virtual void print_draw_immediate () const
virtual void draw_immediate (GraphicsStateGuardianBase *gsg, GeomContext *gc)
virtual int get_num_vertices_per_prim () const
virtual int get_num_more_vertices_than_components () const
virtual bool uses_components () const
virtual int get_length (int) const
virtual Geomexplode () const
INLINE void set_texture (Texture *tex)
INLINE Textureget_texture () const
INLINE void set_ll_uv (const TexCoordf &ll_uv)
INLINE const TexCoordfget_ll_uv () const
INLINE void set_ur_uv (const TexCoordf &ur_uv)
INLINE const TexCoordfget_ur_uv () const
INLINE void set_alpha_disable (bool a)
INLINE bool get_alpha_disable () const
INLINE void set_x_texel_ratio (PTA_float x_texel_ratio, GeomBindType x_bind_type)
INLINE void set_y_texel_ratio (PTA_float y_texel_ratio, GeomBindType y_bind_type)
INLINE void set_thetas (PTA_float theta, GeomBindType theta_bind_type)
INLINE GeomBindType get_x_bind_type () const
INLINE GeomBindType get_y_bind_type () const
INLINE GeomBindType get_theta_bind_type () const
virtual void write_datagram (BamWriter *manager, Datagram &me)
int complete_pointers (TypedWritable **plist, BamReader *manager)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

float get_frustum_top ()
float get_frustum_bottom ()
float get_frustum_left ()
float get_frustum_right ()
void register_with_read_factory ()
TypedWritablemake_GeomSprite (const FactoryParams &params)
void init_type ()

Public Attributes

PTA_float _x_texel_ratio
PTA_float _y_texel_ratio
PTA_float _theta

Protected Member Functions

 PT (Texture) _texture
void fillin (DatagramIterator &scan, BamReader *manager)

Protected Attributes

TexCoordf _ll_uv
TexCoordf _ur_uv
bool _alpha_disable
GeomBindType _x_bind_type
GeomBindType _y_bind_type
GeomBindType _theta_bind_type
PUBLISHED __pad0__: static TypeHandle get_class_type() { return _type_handle

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

GeomSprite::GeomSprite Texture tex = (Texture *) NULL,
bool  alpha_disable = false
 

Definition at line 39 of file geomSprite.cxx.

References _ll_uv, _theta_bind_type, _ur_uv, _x_texel_ratio, _y_texel_ratio, PointerToArray< float >::clear(), G_OFF, and tex.

Referenced by make_copy().


Member Function Documentation

int GeomSprite::complete_pointers TypedWritable **  plist,
BamReader manager
[virtual]
 

Reimplemented from TypedWritable.

Definition at line 155 of file geomSprite.cxx.

References TypedWritable::complete_pointers(), DCAST, and index.

void GeomSprite::draw_immediate GraphicsStateGuardianBase gsg,
GeomContext gc
[virtual]
 

Implements Geom.

Definition at line 81 of file geomSprite.cxx.

References GraphicsStateGuardianBase::draw_sprite().

virtual Geom* GeomSprite::explode  )  const [inline, virtual]
 

Reimplemented from Geom.

Definition at line 43 of file geomSprite.h.

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

Reimplemented from Geom.

Definition at line 129 of file geomSprite.cxx.

References _alpha_disable, _x_bind_type, _x_texel_ratio, _y_bind_type, _y_texel_ratio, Geom::fillin(), DatagramIterator::get_uint8(), BamReader::read_pointer(), and READ_PTA.

Referenced by make_GeomSprite().

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

Reimplemented from Geom.

Definition at line 110 of file geomSprite.h.

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

INLINE bool GeomSprite::get_alpha_disable  )  const
 

Referenced by GLGraphicsStateGuardian::draw_sprite(), DXGraphicsStateGuardian8::draw_sprite(), DXGraphicsStateGuardian7::draw_sprite(), and CRGraphicsStateGuardian::draw_sprite().

float GeomSprite::get_frustum_bottom  )  [inline, static]
 

Definition at line 47 of file geomSprite.h.

float GeomSprite::get_frustum_left  )  [inline, static]
 

Definition at line 48 of file geomSprite.h.

float GeomSprite::get_frustum_right  )  [inline, static]
 

Definition at line 49 of file geomSprite.h.

float GeomSprite::get_frustum_top  )  [inline, static]
 

Definition at line 46 of file geomSprite.h.

virtual int GeomSprite::get_length int   )  const [inline, virtual]
 

Implements Geom.

Definition at line 41 of file geomSprite.h.

INLINE const TexCoordf& GeomSprite::get_ll_uv  )  const
 

Referenced by GLGraphicsStateGuardian::draw_sprite(), DXGraphicsStateGuardian8::draw_sprite(), DXGraphicsStateGuardian7::draw_sprite(), and CRGraphicsStateGuardian::draw_sprite().

virtual int GeomSprite::get_num_more_vertices_than_components  )  const [inline, virtual]
 

Implements Geom.

Definition at line 39 of file geomSprite.h.

virtual int GeomSprite::get_num_vertices_per_prim  )  const [inline, virtual]
 

Implements Geom.

Definition at line 38 of file geomSprite.h.

INLINE Texture* GeomSprite::get_texture  )  const
 

Referenced by GLGraphicsStateGuardian::draw_sprite(), DXGraphicsStateGuardian8::draw_sprite(), DXGraphicsStateGuardian7::draw_sprite(), and CRGraphicsStateGuardian::draw_sprite().

INLINE GeomBindType GeomSprite::get_theta_bind_type  )  const
 

Referenced by GLGraphicsStateGuardian::draw_sprite(), DXGraphicsStateGuardian8::draw_sprite(), DXGraphicsStateGuardian7::draw_sprite(), and CRGraphicsStateGuardian::draw_sprite().

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

Reimplemented from Geom.

Definition at line 107 of file geomSprite.h.

References Geom::get_class_type().

INLINE const TexCoordf& GeomSprite::get_ur_uv  )  const
 

Referenced by GLGraphicsStateGuardian::draw_sprite(), DXGraphicsStateGuardian8::draw_sprite(), DXGraphicsStateGuardian7::draw_sprite(), and CRGraphicsStateGuardian::draw_sprite().

INLINE GeomBindType GeomSprite::get_x_bind_type  )  const
 

Referenced by GLGraphicsStateGuardian::draw_sprite(), DXGraphicsStateGuardian8::draw_sprite(), DXGraphicsStateGuardian7::draw_sprite(), and CRGraphicsStateGuardian::draw_sprite().

INLINE GeomBindType GeomSprite::get_y_bind_type  )  const
 

Referenced by GLGraphicsStateGuardian::draw_sprite(), DXGraphicsStateGuardian8::draw_sprite(), DXGraphicsStateGuardian7::draw_sprite(), and CRGraphicsStateGuardian::draw_sprite().

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

Reimplemented from Geom.

Definition at line 102 of file geomSprite.h.

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

Referenced by ConfigureFn().

Geom * GeomSprite::make_copy  )  const [virtual]
 

Implements Geom.

Definition at line 62 of file geomSprite.cxx.

References GeomSprite().

TypedWritable * GeomSprite::make_GeomSprite const FactoryParams params  )  [static]
 

Definition at line 108 of file geomSprite.cxx.

References Geom::config(), fillin(), WritableConfigurable::make_dirty(), params, and parse_params().

Referenced by register_with_read_factory().

void GeomSprite::print_draw_immediate  )  const [virtual]
 

Implements Geom.

Definition at line 72 of file geomSprite.cxx.

GeomSprite::PT Texture   )  [protected]
 

void GeomSprite::register_with_read_factory  )  [static]
 

Definition at line 145 of file geomSprite.cxx.

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

Referenced by ConfigureFn().

INLINE void GeomSprite::set_alpha_disable bool  a  ) 
 

INLINE void GeomSprite::set_ll_uv const TexCoordf ll_uv  ) 
 

INLINE void GeomSprite::set_texture Texture tex  ) 
 

INLINE void GeomSprite::set_thetas PTA_float  theta,
GeomBindType  theta_bind_type
 

INLINE void GeomSprite::set_ur_uv const TexCoordf ur_uv  ) 
 

INLINE void GeomSprite::set_x_texel_ratio PTA_float  x_texel_ratio,
GeomBindType  x_bind_type
 

INLINE void GeomSprite::set_y_texel_ratio PTA_float  y_texel_ratio,
GeomBindType  y_bind_type
 

virtual bool GeomSprite::uses_components  )  const [inline, virtual]
 

Implements Geom.

Definition at line 40 of file geomSprite.h.

void GeomSprite::write_datagram BamWriter manager,
Datagram me
[virtual]
 

Reimplemented from Geom.

Definition at line 92 of file geomSprite.cxx.

References _alpha_disable, _x_bind_type, _x_texel_ratio, _y_bind_type, _y_texel_ratio, Datagram::add_uint8(), Geom::write_datagram(), BamWriter::write_pointer(), and WRITE_PTA.


Member Data Documentation

PUBLISHED GeomSprite::__pad0__ [protected]
 

Reimplemented from Geom.

Definition at line 99 of file geomSprite.h.

bool GeomSprite::_alpha_disable [protected]
 

Definition at line 81 of file geomSprite.h.

Referenced by fillin(), and write_datagram().

TexCoordf GeomSprite::_ll_uv [protected]
 

Definition at line 78 of file geomSprite.h.

Referenced by GeomSprite().

PTA_float GeomSprite::_theta
 

Definition at line 74 of file geomSprite.h.

Referenced by GLGraphicsStateGuardian::draw_sprite(), DXGraphicsStateGuardian8::draw_sprite(), DXGraphicsStateGuardian7::draw_sprite(), and CRGraphicsStateGuardian::draw_sprite().

GeomBindType GeomSprite::_theta_bind_type [protected]
 

Definition at line 85 of file geomSprite.h.

Referenced by GeomSprite().

TypeHandle GeomSprite::_type_handle [static, private]
 

Reimplemented from Geom.

Definition at line 31 of file geomSprite.cxx.

TexCoordf GeomSprite::_ur_uv [protected]
 

Definition at line 79 of file geomSprite.h.

Referenced by GeomSprite().

GeomBindType GeomSprite::_x_bind_type [protected]
 

Definition at line 83 of file geomSprite.h.

Referenced by fillin(), and write_datagram().

PTA_float GeomSprite::_x_texel_ratio
 

Definition at line 72 of file geomSprite.h.

Referenced by GLGraphicsStateGuardian::draw_sprite(), DXGraphicsStateGuardian8::draw_sprite(), DXGraphicsStateGuardian7::draw_sprite(), CRGraphicsStateGuardian::draw_sprite(), fillin(), GeomSprite(), and write_datagram().

GeomBindType GeomSprite::_y_bind_type [protected]
 

Definition at line 84 of file geomSprite.h.

Referenced by fillin(), and write_datagram().

PTA_float GeomSprite::_y_texel_ratio
 

Definition at line 73 of file geomSprite.h.

Referenced by GLGraphicsStateGuardian::draw_sprite(), DXGraphicsStateGuardian8::draw_sprite(), DXGraphicsStateGuardian7::draw_sprite(), CRGraphicsStateGuardian::draw_sprite(), fillin(), GeomSprite(), and write_datagram().


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