How to create an Animation ?

Dear everybody,

How can I make an Object that I render in OpenGL move along a given line? And I want to have Play key and Pause key like Music Player ?

What do I have to do? please, help me

You change it’s position over time and render each frame with different position.