// Starfield.h - Procedural starfield background effect #pragma once #include struct SDL_Renderer; // fwd class Starfield { public: void init(int count, int w, int h); void update(float dt, int w, int h); void draw(SDL_Renderer* r) const; private: struct Star { float x,y,z,speed; }; std::vector stars; int lastW{0}, lastH{0}; };