Friday, July 22, 2005

Cross compatibility with OpenGL and SDL

I was trying to make OpenGL work through SDL. It took me some time to get things right and I was able to make a small program which animated a multicolored triangle. The rotation of the triangle is controlled by the mouse.
The beautiful thing about it was I was able to compile and run the program in both Windows and Linux without a single modification. Neither did I run into any trouble during the build process. Here is the source and Windows executable. Call me crazy, but I then tried to run the Windows executable in Linux through wine and it worked again.

No comments: