GUI with SDL or OpenGL?

Hello,

I'm looking for some opinions and advice. I'm working on learning SDL and OpenGL and using them to build small games. The code is being written from scratch, and is planned to be cross-platform.

My question is a matter of what to make the GUI out of. As far as I know, neither SDL nor OpenGL have their own GUI elements at all, so all will need built from scratch. As far as I can tell, I could use either SDL or OpenGL for this. So far, I've used SDL to make my window and handle events, and OpenGL to draw shapes on the screen, so I haven't really dived into either real deep yet.

The type of GUI I'm talking about will include things like text input fields, windows, menus, and most anything you would see associated with most games.

First, is there an overall better choice of which to use? Second, if it's a close call, what are the benefits of one versus the other?

My main concern in this project is cross-platform compatibility, hence why I am using SDL and OpenGL. After that, efficiency of the program itself. I'm not really concerned with how much work I'll have to put in myself. I'll do whatever is necessary.
SDL is easier for 2D applications, which are used for most interfaces. It's possible with OpenGL, but it's more difficult to do.
Topic archived. No new replies allowed.