|
|
@ -103,7 +103,7 @@ bool GLWidget::AnyDialogOpen() { |
|
|
|
void GLWidget::uploadStaticDataToGPU() { |
|
|
|
void GLWidget::uploadStaticDataToGPU() { |
|
|
|
auto pendula = &simulation->pendula; |
|
|
|
auto pendula = &simulation->pendula; |
|
|
|
|
|
|
|
|
|
|
|
int pointCount = std::transform_reduce(pendula->begin(), pendula->end(), 0, [](int prev, int curr){ |
|
|
|
size_t pointCount = std::transform_reduce(pendula->begin(), pendula->end(), 0, [](size_t prev, size_t curr){ |
|
|
|
return prev + curr + 1; |
|
|
|
return prev + curr + 1; |
|
|
|
}, [](const Pendulum * p){ |
|
|
|
}, [](const Pendulum * p){ |
|
|
|
return p->X.size(); |
|
|
|
return p->X.size(); |
|
|
|