Setting up window for OpenGL window without GLUT/SDL/SMFL etc.?

Hi, it´s me again. I´m just wondering if it could be possible to set up OpenGL window in just OpenGL (no Win32, too, because I want to make my code as portable as possible).

Is there any way to do this?
No. Creating a window is OS-dependent. You either need OS functions for this, or a library that can do it for you.
What would you recommend, Abramus?
You want to be platform-independent, so you need to use a portable library. Which one? Most likely it doesn't really matter if you only need a window + basic input. But SFML seems to be highly regarded on this forum.
If I'm not mistaken, there's a GLUT library that's sort of like an addon to OpenGL which you can use to create windows.

Although I've never used it and I don't know if it actually does that or not.


(EDIT: I just realized you said you specifically said no GLUT. whoops)

But really the question here is what kind of program do you want to make? Is this just a game with one basic window? If so, then I would definitely go with SFML as it does other things besides window creation that you will be useful.
Last edited on
Yes, I am creating a 3D game. I´m newbie with OpenGL yet, I try to get used to it, but if I can´t even get a window set up properly, I can´t really do anything.

The reason why I don´t use GLUT is because it is so darn difficult to set it up in Code::Blocks (check my other topic for further information).

Creating a professional console or PC game would be a dream come true for me.

Now, I tried SFML. Seems pretty handy, I have to say, but it´s just a first touch, so can´t really tell is it that good or not.

Thanks for your effort.
Topic archived. No new replies allowed.