|
| | CGUIParticle (CCanvas *canvas, CGUIElement *parent) |
| | Constructor.
|
| | CGUIParticle (CCanvas *canvas, CGUIElement *parent, const core::rectf &rect) |
| | Constructor with a predefined rectangle.
|
| virtual void | update (CCamera *camera) |
| | Updates the particle system animations.
|
| virtual void | render (CCamera *camera) |
| | Renders the particle system into the 2D canvas.
|
| virtual CObjectSerializable * | createSerializable () |
| | Creates a serializable object for property editing.
|
| virtual void | loadSerializable (CObjectSerializable *object) |
| | Loads properties from a serializable object.
|
| void | setParticle (const char *source, bool autoPlay) |
| | Sets the particle system source file.
|
|
void | playParticle () |
| | Starts playback of the particle system.
|
|
void | stopParticle () |
| | Stops playback and clears existing particles.
|
|
void | reload () |
| | Reloads the particle system from the current source path.
|
| Particle::CParticleComponent * | getParticle () |
| | Returns the underlying particle component.
|
|
void | remove () |
|
void | removeAllChilds () |
|
CCanvas * | getCanvas () |
|
CGUIElement * | getParent () |
|
void | setName (const char *name) |
|
const char * | getName () |
|
const char * | getID () |
|
void | setTagInt (int i) |
|
void | setTagString (const char *s) |
|
int | getTagInt () |
|
const std::string & | getTagString () |
|
void | setName (const wchar_t *name) |
|
std::wstring | getNameW () |
|
void | setParent (CGUIElement *parent) |
|
std::vector< CGUIElement * > & | getChilds () |
|
void | getAllChilds (std::vector< CGUIElement * > &childs) |
|
void | setColor (const SColor &c) |
|
const SColor & | getColor () |
|
float | getHeight () |
|
float | getWidth () |
|
void | setHeight (float h) |
|
void | setWidth (float w) |
|
const core::rectf & | getRect () |
| virtual const core::rectf | getNativeRect () |
|
int | getDepth () |
|
int | getRenderOrder () |
|
void | setDock (EGUIDock dock) |
|
EGUIDock | getDock () |
|
const SMargin & | getMargin () |
|
void | setMargin (const SMargin &m) |
|
void | setMargin (float l, float t, float r, float b) |
|
void | setRect (const core::rectf &r) |
|
void | setWorldTransform (const core::matrix4 &world) |
|
void | setRelativeTransform (const core::matrix4 &relative) |
|
const core::vector3df | getAlignPosition () |
|
const core::vector3df & | getPosition () |
|
void | invalidate () |
|
void | setPosition (const core::vector3df &v) |
|
const core::vector3df & | getScale () |
|
void | setScale (const core::vector3df &v) |
|
const core::vector3df & | getRotation () |
|
void | setRotation (const core::vector3df &v) |
|
core::quaternion | getRotationQuaternion () |
|
EGUIVerticalAlign | getVerticalAlign () |
|
EGUIHorizontalAlign | getHorizontalAlign () |
|
void | setVerticalAlign (EGUIVerticalAlign a) |
|
void | setHorizontalAlign (EGUIHorizontalAlign a) |
|
void | setAlign (EGUIHorizontalAlign h, EGUIVerticalAlign v) |
|
void | setShaderID (int id) |
|
int | getShaderID () |
|
int | getMaterialId () |
|
void | setMaterialId (int id) |
|
void | setMaterial (CMaterial *material) |
|
void | setMaterialSource (const char *materialFile) |
|
CMaterial * | getMaterial () |
|
CGUIMask * | getMask () |
|
CGUIMask * | getParentMask () |
|
void | setMask (CGUIMask *mask) |
|
void | setDrawBorder (bool b) |
|
bool | isEnableMaterial () |
|
const core::matrix4 & | getRelativeTransform () |
|
const core::matrix4 & | getAbsoluteTransform () |
|
void | setVisible (bool b) |
|
bool | isVisible () |
|
bool | isVisibleInHierarchy () |
|
CEntity * | getEntity () |
|
void | notifyChanged () |
|
CGUIElement * | getChildBefore (CGUIElement *object) |
|
void | bringToNext (CGUIElement *object, CGUIElement *target, bool behind) |
|
void | bringToChild (CGUIElement *object) |
|
bool | isChild (CGUIElement *e) |
|
CGUIElement * | getGUIByPath (const char *path) |
|
void | generateNewId () |
2D GUI element that displays a 3D particle system.
Allows particle effects to be used within the UI canvas.
Example
guiParticle->
setParticle(
"Particles/Magic.particle",
true);
void setParticle(const char *source, bool autoPlay)
Sets the particle system source file.
void playParticle()
Starts playback of the particle system.
CGUIParticle(CCanvas *canvas, CGUIElement *parent)
Constructor.