65.9K
CodeProject is changing. Read more.
Home

Perpetuum Mobile

starIconstarIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIcon

2.78/5 (6 votes)

Feb 21, 2006

CPOL
viewsIcon

92030

downloadIcon

1443

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