Homec4science

OpenGL calls bound in render method

Authored by ancarola on Mar 8 2018, 09:46.

Description

OpenGL calls bound in render method

Post_update call added in class Shape

In fact, we need two update times:
the first one is made to accumulate forces given by the user,
the second one is bound to update the speed and the position
with respect to the accumulated forces

Finally, the update/render order is the following:

  • Shape user update, Shape::update
  • Shape engine update, Shape::post_update
  • Shape rendering, Shape::render

All detailed code relative to the calls is implemented in the scene.cpp file

Details

Committed
ancarolaMar 8 2018, 09:46
Pushed
ancarolaMar 8 2018, 09:52
Parents
rSYMKITd7a3ccd528f0: GLBuffer structure definition
Branches
Unknown
Tags
Unknown