#ifndef SIMULATION_H #define SIMULATION_H #include #include #include #include #include "vec3.h" #include "ring_buffer.h" struct SimulationState { std::vector positions; }; extern std::atomic running; extern RingBuffer snapshot_buffer; void simulation_loop(std::shared_ptr state); void render_loop(); #endif