group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
RibbonTrail Class Reference

Builds camera-facing ribbon trails for slow/arcing projectiles (rockets). More...

#include <RibbonTrail.hpp>

Public Member Functions

void update (float dt, Registry &registry, glm::vec3 camPos)
 Rebuild the vertex staging buffer from all active RibbonEmitter entities.
 
const RibbonVertexdata () const
 
uint32_t count () const
 

Detailed Description

Builds camera-facing ribbon trails for slow/arcing projectiles (rockets).

Iterates entities with RibbonEmitter each frame, ages their node ring-buffers, then expands all segments into a flat RibbonVertex array for GPU upload.

Member Function Documentation

◆ count()

uint32_t RibbonTrail::count ( ) const
inline
Here is the caller graph for this function:

◆ data()

const RibbonVertex * RibbonTrail::data ( ) const
inline
Here is the caller graph for this function:

◆ update()

void RibbonTrail::update ( float  dt,
Registry registry,
glm::vec3  camPos 
)

Rebuild the vertex staging buffer from all active RibbonEmitter entities.

Parameters
dtFrame delta time in seconds.
registryECS registry containing RibbonEmitter entities.
camPosWorld-space camera position for billboard orientation.
Here is the caller graph for this function:

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