Fix gravity example

This commit is contained in:
Nikita Lisitsa 2020-09-30 19:06:54 +03:00
parent 662a17c7e7
commit 7ed3508a17

View file

@ -131,7 +131,7 @@ struct myapp : app::app
camera_drag_ = std::nullopt; camera_drag_ = std::nullopt;
} }
void on_mouse_move(int x, int y) override void on_mouse_move(int x, int y, int, int) override
{ {
mouse_ = {x, y}; mouse_ = {x, y};
@ -152,9 +152,6 @@ struct myapp : app::app
float const dt = 0.01f; float const dt = 0.01f;
float const G = 100.f; float const G = 100.f;
float const E = 200.f;
float const K = 0.1f;
float const C = 0.1f;
for (std::size_t step = 0; step < 1; ++step) for (std::size_t step = 0; step < 1; ++step)
{ {
@ -265,7 +262,7 @@ struct myapp : app::app
} }
} }
void draw() override void render() override
{ {
gl::Clear(gl::COLOR_BUFFER_BIT); gl::Clear(gl::COLOR_BUFFER_BIT);