A keyboard handler and timer in C++ for the Linux platform

In this post we will construct a simple timer for evaluating the duration of a frame in addition to a keyboard handler. We will use these objects in conjunction to update our position relative to a cube. SDL and OpenGL will be used for rendering. Below is a frame captured from our application. We will query an instance of our timer once for each pass through our application loop. It should yield the duration of the previous frame. The position of objects in the current frame can then Read more [...]