MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
space::Particle Struct Reference

Runtime state for an explosion or engine particle. More...

#include <examples/asteroids-net/asteroids3d_types.hpp>

Public Attributes

bool active = false
 Whether this slot is active.
glm::vec4 color {1.0f}
 Render color.
bool color_flash = false
 Whether the particle flashes as it ages.
float lifetime = 0.0f
 Remaining lifetime in seconds.
float max_lifetime = 0.0f
 Initial lifetime in seconds.
glm::vec3 position {0.0f}
 Current world-space position.
float size = 0.0f
 Rendered point size.
glm::vec3 velocity {0.0f}
 World-space velocity.

Detailed Description

Runtime state for an explosion or engine particle.

Definition at line 283 of file asteroids3d_types.hpp.

Member Data Documentation

◆ active

bool Particle::active = false

Whether this slot is active.

Definition at line 291 of file asteroids3d_types.hpp.

◆ color

glm::vec4 Particle::color {1.0f}

Render color.

Definition at line 286 of file asteroids3d_types.hpp.

286{1.0f}; ///< Render color.

◆ color_flash

bool Particle::color_flash = false

Whether the particle flashes as it ages.

Definition at line 290 of file asteroids3d_types.hpp.

◆ lifetime

float Particle::lifetime = 0.0f

Remaining lifetime in seconds.

Definition at line 288 of file asteroids3d_types.hpp.

◆ max_lifetime

float Particle::max_lifetime = 0.0f

Initial lifetime in seconds.

Definition at line 289 of file asteroids3d_types.hpp.

◆ position

glm::vec3 Particle::position {0.0f}

Current world-space position.

Definition at line 284 of file asteroids3d_types.hpp.

284{0.0f}; ///< Current world-space position.

◆ size

float Particle::size = 0.0f

Rendered point size.

Definition at line 287 of file asteroids3d_types.hpp.

◆ velocity

glm::vec3 Particle::velocity {0.0f}

World-space velocity.

Definition at line 285 of file asteroids3d_types.hpp.

285{0.0f}; ///< World-space velocity.

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