#include <_src_fx_sprite.hh>
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... | |
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.
typedef Object fx::Sprite::Parent [private] |
| fx::Sprite::Sprite | ( | const Args & | args | ) |
ctor/dtor.
| fx::Sprite::~Sprite | ( | ) |
| 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 | |||
| ) |
Subroutine of ctor.
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
RGBA fx::Sprite::mColor0 [private] |
uni-color
const fp fx::Sprite::mWidth [private] |
needed for roll (cloud support)
Palomino Flight Simulator documents generated by doxygen 1.5.6 on Tue Sep 28 11:37:49 2010