Click here to Skip to main content
15,885,141 members
Articles / Multimedia / OpenGL

Perpetuum Mobile

Rate me:
Please Sign up or sign in to vote.
2.78/5 (6 votes)
20 Feb 2006CPOL 91.8K   1.4K   12   3
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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Latvia Latvia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Questionwant vcl.h header file Pin
Member 1312875125-May-17 3:46
Member 1312875125-May-17 3:46 
GeneralDefinitly no pepetuum mobile Pin
Alexander M.,21-Feb-06 6:05
Alexander M.,21-Feb-06 6:05 
GeneralRe: Definitly no pepetuum mobile Pin
Sergey Matveyev22-Feb-06 1:24
Sergey Matveyev22-Feb-06 1:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.