This is a "simple" example of how to create an OpenGL application on Windows, Mac OS X and Linux that correctly deals with...
- Alt-Tabbing
- Multiple Monitors
- Xbox Controllers
- Icons
- Changing to and from fullscreen
- Install mingw-w64-install.exe
- Install http://msysgit.github.io/
- Put their
/bin
directories in yourPATH
. - Install ImageMagick
- Install XCode
sudo apt-get install a56 imagemagick git-core libglu1-mesa-dev libxi-dev ocl-icd-opencl-dev mingw-w64
If cross compiling, copy the OpenCL library and headers from the Windows setup to /usr/x86_64-w64-mingw32/
git clone git@github.com:burito/opengl.git # if you're using ssh
cd opengl
make -j8 # if you have 8 threads
By default, it will build the binary native for your platform.
make gui # builds the default linux binary
make gui.exe # builds the default windows binary
make gui.app # builds the default OSX binary
- ESC quits.
- F11 Toggles Fullscreen.
Please refer to the articles at...
http://danpburke.blogspot.com.au
...for the complete set of ramblings.