3
votes

I wondered why I couldn't find a question about that already. How can I create a cross-platform window in C++? By cross-platform I mean support for at least Windows, Mac and Linux.

If there is a library for only this task out there I am willing to use that. But I don't want to use a bloated library with window controls like wxWidgets.

I don't need GUI controls because I am going to use OpenGL. (And for some reason I don't want to use frameworks like GLUT or GLFW.)

2
how do you define bloated?billz
Are you really sure you didn't get this answer automatically ?vvnraman
I do not need GUI elements but just a window. So in this case a not bloated library would only perform the task of creating and managing (resize, minimize, toggle fullscreen) the window.danijar

2 Answers

3
votes

Try C++ bindings library for Tk. It's a very lightweight and simple.

3
votes

There are others, I recommend and use FLTK. But Qt is also my favorite. See what works best for you and your patterns of thinking.

FLTK is extremely light weight.