An OpenGL 3.3 Core Framework.
You need the following packages on Ubuntu. (other distros similar)
$ sudo aptitude install build-essential cmake libqt4-dev libfreeimage-dev libboost-dev
You also need assimp (i.e. from git).
$ git clone git://github.com/assimp/assimp.git
You can choose between SDL and XCB window creation. XCB will only work with X11 :) SDL is optional, found in the CMake options.
$ sudo aptitude install libx11-xcb-dev libxcb-keysyms1-dev
SDL 1.3 from mercurial
$ hg clone http://hg.libsdl.org/SDL
The CMake script will download following headers from the OpenGL Registry, if you dont have them in /usr/include/GL3
,
and put them into the local liblub include directory.
- gl3.h
- glext.h
- glxext.h
$ cmake .
$ make
Run the scenes from the root directory.
$ ./bin/sponge
$ gnome-keybinding-properties
Set Window Management
> Toggle fullscreen Mode
to a hotkey. I chose Super + F12.
SDL Fullscreen works at init (toggle does not).
To quickly build liblub on Ubuntu (assuming 4 cores)
sudo aptitude install git build-essential cmake libqt4-dev libfreeimage-dev libx11-xcb-dev libxcb-keysyms1-dev
git clone git://github.com/assimp/assimp.git
cd assimp
cmake .
make -j5
sudo make install
cd ..
git clone git://github.com/lubosz/liblub.git
cd liblub
cmake .
make -j5