Wednesday, January 24, 2007

Wiring Diagram For Motion Sensor Light

OpenGL and wxWidgets


What is there to say about OpenGL? Famous library that provides low-level calls to create 2D and 3D graphics.
To work with these libraries, it takes a little 'patience because are not very close, but taking the familiar things you can achieve very nice. To begin to study OpenGL
advice or a book, The Red Book, also available on-line or if you learn better with the code this site by turning to the Internet there are also translations of the lectures.

If you're wondering but I do not know programming C + + (language most used for these libraries) must necessarily learn to program C + +?
No, you can use other programming languages. Obviously

OpenGL is a library with only low-level functions, but we must also create a window to contain these "drawings" to create the container we many possibilities.
Since I use Linux, but I have to have portability to the Windows world, I threw myself on portable libraries, the choices were different.
The main wxWidgets and QT, I looked a bit 'the source codes of both and I found myself more at ease with wxWidgets (obviously offer compatibility with OpenGL).

The wxWidgets allow you to use C + +, Python, Perl and C #. / NET.
Since my experience is more oriented towards C / C + + I chose the latter.
These libraries also provides many examples for most features, and there is good documentation (javadoc-style) for functions.

After some 'initial difficulties, we were able to effectively use these two libraries with a lot of potential (imho).
The hardest part was the integration, we had to play a little 'to spin the cube:), but at the end of the efforts we are very happy.

Ultimately recommend using these instruments, even if it means losing a little 'time to learn how to use a minimum.
The only negative thing we found was to install libraries for wxWidgets development under Windows, as well as install them with the easy installer must complete all re-editing an option.
But anyway they are all steps described in the help files.

Good programming to everyone:)

0 comments:

Post a Comment