27#include "Graphics2D/CCanvas.h"
28#include "ParticleSystem/CParticleComponent.h"
This is an object class used to set up the camera, including its position, viewing angle,...
Definition CCamera.h:70
Definition CObjectSerializable.h:36
2D GUI element that displays a 3D particle system.
Definition CGUIParticle.h:52
bool m_autoPlay
Whether the particle system plays automatically upon loading.
Definition CGUIParticle.h:62
float m_particleScale
Scaling factor for the 3D particle system in 2D UI space.
Definition CGUIParticle.h:67
static void registerPlugin()
Registers the CGUIParticle class to the CGUIFactory.
void reload()
Reloads the particle system from the current source path.
void setParticle(const char *source, bool autoPlay)
Sets the particle system source file.
void stopParticle()
Stops playback and clears existing particles.
virtual CObjectSerializable * createSerializable()
Creates a serializable object for property editing.
void renderParticleBuffer(Particle::CGroup *g)
Renders a specific particle group.
virtual void render(CCamera *camera)
Renders the particle system into the 2D canvas.
CGUIParticle(CCanvas *canvas, CGUIElement *parent, const core::rectf &rect)
Constructor with a predefined rectangle.
float m_depthZ
Depth value (Z) for rendering the particle system relative to the UI.
Definition CGUIParticle.h:72
Particle::CParticleComponent * m_ps
The underlying particle component instance.
Definition CGUIParticle.h:77
virtual void update(CCamera *camera)
Updates the particle system animations.
core::vector3df m_billboardUp
Cached up vector for billboarding.
Definition CGUIParticle.h:82
virtual void loadSerializable(CObjectSerializable *object)
Loads properties from a serializable object.
void playParticle()
Starts playback of the particle system.
Particle::CParticleComponent * getParticle()
Returns the underlying particle component.
Definition CGUIParticle.h:162
CGUIParticle(CCanvas *canvas, CGUIElement *parent)
Constructor.
core::vector3df m_billboardLook
Cached look vector for billboarding.
Definition CGUIParticle.h:87
std::string m_source
The source path to the .particle file.
Definition CGUIParticle.h:57
Represents a group of particles with shared settings, emitters, and a renderer.
Definition CGroup.h:132
Main component for creating and managing a particle system in Skylicht.
Definition CParticleComponent.h:66
Everything in the Skylicht Engine. You can start by looking at the topics.
Definition AudioDebugLog.h:29
vector3d< f32 > vector3df
Typedef for a f32 3d vector.
Definition vector3d.h:445
rect< f32 > rectf
Rectangle with float values.
Definition rect.h:271