Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Perpetuum Mobile

0.00/5 (No votes)
21 Feb 2006 1  
OpenGL based model of impossible...
Sample screenshot

Introduction

This little program shows how to create elementary OpenGL based graphical objects. There you can find an example of how to create OpenGL content, draw and rotate objects. The program is created in C++ Builder 5 platform and constitutes a virtual model of some Leonardo Davinci perpetual motion machine.

Sample screenshot

The main graphical part is contained in the graph.cpp file. All coordinates of model components are calculated in 'Levers' class object, which is contained in files:

  • Levers.cpp
  • Shoulders.cpp

In the demo executable, you can use mouse wheel or ↑ ↓ keyboard keys to increase or decrease levers amount, and rotate picture with ← → keys or mouse.

History

  • 21st February, 2006: Initial post

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here