Migrate 32 engine definitions into validated startup-loaded TOML files and separate configuration and snapshots from scenario assembly. Add camera-based stereo propagation from shared pipe geometry, preserve exhaust character, tune carburetor mixtures and idle, use ignition cuts for carb engines, and support returning to the scenario menu. Validation: full Windows build and all 14 CTest checks passed.
20 lines
619 B
C++
20 lines
619 B
C++
#pragma once
|
|
#include "FluidSim/ScenarioSnapshot.hpp"
|
|
#include "FluidSim/Desktop/OrbitCamera.hpp"
|
|
#include <SFML/Graphics.hpp>
|
|
#include <memory>
|
|
namespace fluidsim::port::desktop {
|
|
// Visualization consumes snapshots only; it never accesses mutable solver state.
|
|
class EngineRenderer3D {
|
|
public:
|
|
EngineRenderer3D();
|
|
~EngineRenderer3D();
|
|
EngineRenderer3D(const EngineRenderer3D&)=delete;
|
|
EngineRenderer3D& operator=(const EngineRenderer3D&)=delete;
|
|
void draw(sf::RenderWindow&,const ScenarioSnapshot&,sf::FloatRect,const OrbitCamera&);
|
|
private:
|
|
struct Impl;
|
|
std::unique_ptr<Impl> impl_;
|
|
};
|
|
}
|