replace 'StaticSim' with the SpirvSim type, material being the Vacuum

This commit is contained in:
2022-07-27 16:22:32 -07:00
parent dc38457a8b
commit 1dd6a068ba
7 changed files with 55 additions and 540 deletions

View File

@@ -1,8 +1,7 @@
use crate::geom::Meters;
use crate::real::ToFloat as _;
use crate::types::vec::{Vec2, Vec3};
use crate::sim::{SampleableSim, Sample};
use crate::sim::legacy::StaticSim;
use crate::sim::{SampleableSim, Sample, StaticSim};
use crate::meas::{self, AbstractMeasurement};
use crossterm::{cursor, QueueableCommand as _};
use crossterm::style::{style, Color, PrintStyledContent, Stylize as _};
@@ -577,6 +576,9 @@ impl<S: SampleableSim> SerializedFrame<S> {
}
}
/// this serializes the simulation state plus measurements to disk.
/// it can either convert the state to a generic, material-agnostic format (static)
/// or dump it as-is.
pub struct SerializerRenderer {
fmt_str: String,
prefer_static: bool,