VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
vex::Particle Struct Reference

CPU-side representation of a single particle during its lifetime. More...

#include <ParticleEmitterComponent.hpp>

Public Attributes

glm::vec3 position = glm::vec3(0.0f)
 Current world position.
glm::vec3 velocity = glm::vec3(0.0f)
 Current velocity.
vex::rgba color = vex::rgba(1.0f, 1.0f, 1.0f, 1.0f)
 Current color.
vex::rgba startColor = vex::rgba(1.0f, 1.0f, 1.0f, 1.0f)
 Color at spawn.
vex::rgba endColor = vex::rgba(1.0f, 1.0f, 1.0f, 0.0f)
 Color at end of life.
float startSize = 1.0f
 Size at spawn.
float endSize = 0.0f
 Size at end of life.
float life = 0.0f
 Remaining lifetime in seconds.
float startingLife = 1.0f
 Total lifetime in seconds.

Detailed Description

CPU-side representation of a single particle during its lifetime.

Definition at line 29 of file ParticleEmitterComponent.hpp.

Member Data Documentation

◆ color

vex::rgba vex::Particle::color = vex::rgba(1.0f, 1.0f, 1.0f, 1.0f)

Current color.

Definition at line 32 of file ParticleEmitterComponent.hpp.

◆ endColor

vex::rgba vex::Particle::endColor = vex::rgba(1.0f, 1.0f, 1.0f, 0.0f)

Color at end of life.

Definition at line 34 of file ParticleEmitterComponent.hpp.

◆ endSize

float vex::Particle::endSize = 0.0f

Size at end of life.

Definition at line 36 of file ParticleEmitterComponent.hpp.

◆ life

float vex::Particle::life = 0.0f

Remaining lifetime in seconds.

Definition at line 37 of file ParticleEmitterComponent.hpp.

◆ position

glm::vec3 vex::Particle::position = glm::vec3(0.0f)

Current world position.

Definition at line 30 of file ParticleEmitterComponent.hpp.

◆ startColor

vex::rgba vex::Particle::startColor = vex::rgba(1.0f, 1.0f, 1.0f, 1.0f)

Color at spawn.

Definition at line 33 of file ParticleEmitterComponent.hpp.

◆ startingLife

float vex::Particle::startingLife = 1.0f

Total lifetime in seconds.

Definition at line 38 of file ParticleEmitterComponent.hpp.

◆ startSize

float vex::Particle::startSize = 1.0f

Size at spawn.

Definition at line 35 of file ParticleEmitterComponent.hpp.

◆ velocity

glm::vec3 vex::Particle::velocity = glm::vec3(0.0f)

Current velocity.

Definition at line 31 of file ParticleEmitterComponent.hpp.


The documentation for this struct was generated from the following file: