This commit is contained in:
parent
ad619de1dc
commit
5693dc8961
|
|
@ -125,9 +125,18 @@ int Window::init(float* data) {
|
||||||
this->widget = new Widget(this->window);
|
this->widget = new Widget(this->window);
|
||||||
|
|
||||||
// loop function for draw calls etc.
|
// loop function for draw calls etc.
|
||||||
while (!glfwWindowShouldClose(window)) {
|
for (int i=296; i <= 306; i++) {
|
||||||
|
this->widget->date = i;
|
||||||
|
for (int j=0; j < 4; j++) {
|
||||||
Window::tick();
|
Window::tick();
|
||||||
|
this->saveImage();
|
||||||
|
this->widget->timestep = j;
|
||||||
|
this->widget->datechanged = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
// while (!glfwWindowShouldClose(window)) {
|
||||||
|
// Window::tick();
|
||||||
|
// }
|
||||||
|
|
||||||
Window::free(data);
|
Window::free(data);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue