sdl_runtime_compiler git · main
SDL3 game for running and compiling code at runtime
C++ 72.3% C 26.2%git clone https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler.gitwget https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler/archive/sdl_runtime_compiler.tar.gzsrc/systems/celebration_system.hpp raw
#pragma once
#include "utils/globals.hpp"
#include "text/token.hpp"
namespace
Nimbin
{
class GlRenderer;
class ParticleSystem;
struct Camera;
struct Light;
class CelebrationSystem
{
Text::TokenPtr _banner;
double _t = 0,
_duration = 3.5,
_next_burst = 0;
bool _active = false;
public:
void start (const Camera& cam, double& glyph_yaw);
void tick (double dt, ParticleSystem& particle_sys);
void finish (ParticleSystem& particle_sys);
void draw (GlRenderer&, const Camera&, const Light&) const;
bool is_Active () const;
double get_Progress() const;
};
} // namespace Nimbin