Skip to content

tapio/liblub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

liblub

An OpenGL 3.3 Core Framework.

Dependencies

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

Window and Context Creation

You can choose between SDL and XCB window creation. XCB will only work with X11 :) SDL is optional, found in the CMake options.

For XCB:

$ sudo aptitude install libx11-xcb-dev libxcb-keysyms1-dev

For SDL:

SDL 1.3 from mercurial

$ hg clone http://hg.libsdl.org/SDL

Headers

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

Compile

$ cmake .

$ make

Run

Scenes

Run the scenes from the root directory.

$ ./bin/sponge

Fullscreen Mode with XCB in GNOME

$ gnome-keybinding-properties

Set Window Management > Toggle fullscreen Mode to a hotkey. I chose Super + F12.

SDL Fullscreen works at init (toggle does not).

tl;dr Ubuntu

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

About

An OpenGL 3+4 Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 56.9%
  • Python 28.5%
  • C 14.6%