My OpenGL-SDL GUI

posted in owl's Blog
Published January 14, 2011
Advertisement
Yes, after years of hanging out at night, tons of gallons of beer and a couple of hundreds of women I'm back at my project.

Here a screenshot:
gallery_16415_67_13398.jpg


What you see here is an OpenGL-SDL based GUI from my own kitchen. In the background there is a skeletal animation of a 3D model using the Cal3D library.

So far I've coded MenuBar, Context Menu, Dragable Window, Textbox, Checkbox, Button and Label controls. It makes use of VBO for everything and it supports reloading of video resources on display mode change.

Oh and loading of Themes on the fly!
0 likes 2 comments

Comments

MaskedAvenger
Nice job, I was just pondering the intricacies of UI design in SDL ...
January 14, 2011 11:41 AM
owl
Most of the work is just plain C++. SDL is only used for Input, window management and OpenGL context creation.
The data structures for the theme sprites to work with OpenGL were a little hard to come up with but I made a mix between "proper" OO and convenience and got it working somehow.

Yet, I wouldn't like to have to learn my own library if I hadn't written it myself!
January 14, 2011 03:28 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement