File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed
Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 77#include < halp/texture.hpp>
88
99#include < chrono>
10+ #include < algorithm>
11+
1012namespace vo
1113{
1214// Graphical item which will display the texture
Original file line number Diff line number Diff line change @@ -35,12 +35,21 @@ struct Accumulator
3535 struct inputs_t
3636 {
3737 halp::val_port<" In" , std::optional<float >> in;
38- struct : halp::impulse_button <" Reset" >
38+ struct : halp::toggle <" Reset" >
3939 {
4040 void update (Accumulator& self)
4141 {
4242 std::destroy_at (&self.minmax );
4343 std::construct_at (&self.minmax );
44+ self.outputs .count .value = 0 ;
45+ self.outputs .sum .value = 0 ;
46+ self.outputs .diff .value = 0 ;
47+ self.outputs .min .value = 0 ;
48+ self.outputs .max .value = 0 ;
49+ self.outputs .mean .value = 0 ;
50+ self.outputs .variance .value = 0 ;
51+ self.outputs .median .value = 0 ;
52+ self.outputs .kurtosis .value = 0 ;
4453 }
4554 } reset;
4655 } inputs;
Original file line number Diff line number Diff line change 1111#include < ossia/detail/small_vector.hpp>
1212
1313#include < array>
14+ #include < chrono>
1415#include < optional>
1516
1617namespace mo
Original file line number Diff line number Diff line change @@ -121,8 +121,8 @@ consteval int std140_size()
121121*/
122122
123123#if defined(_MSC_VER)
124- #define MSVC_BUGGY_CONSTEVAL
125- #define MSVC_BUGGY_CONSTEXPR
124+ #define MSVC_BUGGY_CONSTEVAL consteval
125+ #define MSVC_BUGGY_CONSTEXPR constexpr
126126#else
127127#define MSVC_BUGGY_CONSTEVAL consteval
128128#define MSVC_BUGGY_CONSTEXPR constexpr
You can’t perform that action at this time.
0 commit comments