Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrate LibRocket With SDL And OpenGL

I been currently involved in a game project and we reach the point we're want to added the GUI for menus and other stuff but the time that we maybe spent developing our own system could cost us a bit of time, and this is a part of the system that we don't want to lose too much time.

So, we're reading about some UI Libraries like GUIchan, CEGUI and recently LibRocket which apparently is very flexible and useful, so my question is if Librocket could be integrate with a project develop in SDL/OpenGL in C++? and if you know where to find information about that, because we're unable to find something like that.

like image 401
oscar.rpr Avatar asked Dec 27 '22 13:12

oscar.rpr


1 Answers

librocket is designed to work with any media libraries. You need to write a renderer that derives from Rocket::Core::RenderInterface. If you look in the example, they already provide both opengl and directx implementation of this renderer.

For playing sound, there is no default support, but you can easily implement them using events.

like image 180
crazyjul Avatar answered Jan 12 '23 17:01

crazyjul