fx::Sprite Class Reference

Sprite class. More...

#include <_src_fx_sprite.hh>

Inheritance diagram for fx::Sprite:

fx::BigParticle sky::Moon fx::ExplosionParticle sky::CloudParticle

List of all members.

Public Types

enum  { ROTATE_ABS = false, ROTATE_REL = true }

Public Member Functions

 Sprite (const Args &args)
 ~Sprite ()
const string GetName (void)
virtual NodeSort GetNodeSort (void)
RGBA GetColor0 (void)
void SetColor0 (const RGBA rgba)
void RotateRoll (const Radian radian, const bool relative=true)

Private Types

typedef Object Parent

Private Member Functions

RefPtr< osg::Drawable > MakeDrawable (const Args &args)

Private Attributes

CLASS_CONST NodeSort msSpriteNodeSort = NodeSort::Attribs( NodeSort::Attribs::TRANSPARENT )
RefPtr< osg::Geometry > mGeometry
 Geometry is also a Drawable.
RefPtr< osg::Vec3Array > mVertexs
 vertexs
RGBA mColor0
 uni-color
const fp mWidth
 needed for roll (cloud support)

Classes

struct  Args
 Sprite ctor args. More...


Detailed Description

Sprite class.

See Commodore 64 Programmer's Reference Guide.

This class is written with inlines to optimize ParticleSystem.

Note: Client should attach Sprites to a group node with appropriate OSG stateset. For example, the client can bind a texture to a stateset then pass that to Sprite ctor. Historically, Sprite used to alter its stateset (bind textures etc), but that eroded the state-sorting of the scene-graph.


Member Typedef Documentation

typedef Object fx::Sprite::Parent [private]


Member Enumeration Documentation

anonymous enum

Enumerator:
ROTATE_ABS 
ROTATE_REL 


Constructor & Destructor Documentation

fx::Sprite::Sprite ( const Args args  ) 

ctor/dtor.

fx::Sprite::~Sprite (  ) 


Member Function Documentation

const string fx::Sprite::GetName ( void   )  [inline]

virtual NodeSort fx::Sprite::GetNodeSort ( void   )  [inline, virtual]

Reimplemented in sky::Moon.

RGBA fx::Sprite::GetColor0 ( void   )  [inline]

void fx::Sprite::SetColor0 ( const RGBA  rgba  )  [inline]

void fx::Sprite::RotateRoll ( const Radian  radian,
const bool  relative = true 
)

RefPtr< osg::Drawable > fx::Sprite::MakeDrawable ( const Args args  )  [private]

Subroutine of ctor.


Member Data Documentation

const NodeSort fx::Sprite::msSpriteNodeSort = NodeSort::Attribs( NodeSort::Attribs::TRANSPARENT ) [private]

RefPtr<osg::Geometry> fx::Sprite::mGeometry [private]

Geometry is also a Drawable.

RefPtr<osg::Vec3Array> fx::Sprite::mVertexs [private]

vertexs

uni-color

const fp fx::Sprite::mWidth [private]

needed for roll (cloud support)


The documentation for this class was generated from the following files:
Palomino Flight Simulator documents generated by doxygen 1.5.6 on Tue Sep 28 11:37:49 2010