Click here to Skip to main content
Licence CPOL
First Posted 20 Feb 2006
Views 66,377
Downloads 795
Bookmarked 12 times

Perpetuum Mobile

By | 20 Feb 2006 | Article
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)

About the Author

Sergey Matveyev



Latvia Latvia

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralDefinitly no pepetuum mobile PinmemberAlexander M.6:05 21 Feb '06  
GeneralRe: Definitly no pepetuum mobile PinmemberSergey Matveyev1:24 22 Feb '06  

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

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

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 21 Feb 2006
Article Copyright 2006 by Sergey Matveyev
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid