Brunot
Loading...
Searching...
No Matches
ParticleBlock.cpp File Reference

A container for holding and updating particles that are all the same type. More...

#include "ParticleBlock.h"
#include <ranges>
#include "imgui.h"
#include "Graphics/Particle.h"
#include "Graphics/Shader.h"
#include "Graphics/Texture.h"
#include "Graphics/Mesh.h"
#include "Utility/Math/AffineMatrix.h"
Include dependency graph for ParticleBlock.cpp:

Macros

#define PB_PUSH(name)
#define PB_ADD(name)
#define DEBUG_ROWS   0
#define ROW(name)

Detailed Description

A container for holding and updating particles that are all the same type.

ParticleBlock used and owned by ParticleEmitter, and shared with sys::ParticleManager. Takes in particles as an Array of Structs, and stores them as a Struct of Arrays, for performance

Author
Aidan Hartman (aidan.nosp@m..har.nosp@m.tman@.nosp@m.digi.nosp@m.pen.e.nosp@m.du)
Date
2026 / 03 / 27

Macro Definition Documentation

◆ DEBUG_ROWS

#define DEBUG_ROWS   0

◆ PB_ADD

#define PB_ADD ( name)
Value:
name[pos] = (particle.##name)
static int pos[2]
Definition Editor.cpp:79

◆ PB_PUSH

#define PB_PUSH ( name)
Value:
name.push_back(particle.##name)

◆ ROW

#define ROW ( name)