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.
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:
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