group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
RibbonTrail.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
8
9#include <glm/glm.hpp>
10#include <vector>
11
17{
18public:
23 void update(float dt, Registry& registry, glm::vec3 camPos);
24
25 [[nodiscard]] const RibbonVertex* data() const { return vertices_.data(); }
26 [[nodiscard]] uint32_t count() const { return static_cast<uint32_t>(vertices_.size()); }
27
28private:
29 std::vector<RibbonVertex> vertices_;
30};
GPU-uploadable particle structs for all effect categories.
Shared ECS registry type alias for the game engine.
entt::registry Registry
Shared ECS registry type alias.
Definition Registry.hpp:11
Builds camera-facing ribbon trails for slow/arcing projectiles (rockets).
Definition RibbonTrail.hpp:17
uint32_t count() const
Definition RibbonTrail.hpp:26
void update(float dt, Registry &registry, glm::vec3 camPos)
Rebuild the vertex staging buffer from all active RibbonEmitter entities.
Definition RibbonTrail.cpp:13
const RibbonVertex * data() const
Definition RibbonTrail.hpp:25
std::vector< RibbonVertex > vertices_
Rebuilt every frame.
Definition RibbonTrail.hpp:29
Ribbon vertex (pre-expanded on CPU, uploaded as flat vertex stream).
Definition ParticleTypes.hpp:46