
opengltemplates
OpenGL Wizards for the Qt Creator IDE. (And no, Qt is NOT a dependency)
How to use
Grab a download (from this page on the right side, or the left side...depending on google's mood), say foo.tar.bz2
Uncompress it somewhere, tar xvfj foo.tar.bz2
A 'foo' directory should have been created.
Copy that directory to where Qt Creator needs it, cp -R foo location
Start Qt Creator, and have fun :)
location???
Ok, here's what the docs say
http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-wizards.html
Custom wizards are located in subdirectories of the following directories:
share/qtcreator/templates/wizards
the local user's configuration folder, $HOME/.config/Nokia/qtcreator/templates/wizards
%APPDATA%\Nokia\qtcreator\templates\wizards
~~Haven't tested that, cause I like to play with Qt Creator's nightly builds. So, since the nightly build is in my home dir, this is the line I use to copy the wizard:~~
~~cp -R neheglglut/ ~/qtcreator-2.1.0/share/qtcreator/templates/wizards/~~
This line does the trick (better):
cp -R neheglglut/ ~/.config//Nokia/qtcreator/templates/wizards/
Please note
This whole thing is a quick hack. Qt Creator by default (at least the build I am using), creates "shadow builds". So, if you name your project foo, it creates foo-build-desktop and this is where it places your executable. The thing is, that if you have a data file, say logo.tga, it won't get copied there and it won't probably work as you'd like.
A quick workarround is to "Switch to Projects mode" (click the Projects icon in Qt Creator) and untick the "Shadow Build" checkbox.
Then goto "Build" menu and choose "Run qmake", then build and you should be ok.
neheglglutVS (Video & Snapshot capability)
This adds the 'grab a snapshot' and 'grab a video' capability. Library-wise you are gonna need:
libjpeg62-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev
So in (k)ubuntu you can do something like:
sudo apt-get install libjpeg62-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev
Do something similar for your other distro. Once you have all the libraries and it compiles, hit F12 for a snapshot, hit F11 to start recording to video and hit F11 to stop the record.
Note that the record keeps adding frames to the rate you feed it (cpu permitting) but the playback is hardcoded to 25fps. So, if you record at 50fps and play it, you'll get a 50% slow motion. Just play with it...
Add help for OpenGL
http://code.google.com/p/qtcreator-openglhelp/
So when you hit F1 on an OpenGL function you get the help displayed on the side.