GLUT

Hello,

I'm looking to learn how to make a Cross OS GLUT window so I may try an OpenGL tutorial in the GLUT window rather than a Win32 window. The reason for this is that I will be developing my project in multiple operating systems, depending on my location when I get time to work on it. Rather than having to build separate windows for them all, I thought I could, instead, make a GLUT window, which I heard was Cross OS.

The problem I'm running in to is that, since I'm using Code::Blocks, many places just tell me to have Code::Blocks set a window up for me. That would be fine and dandy if it didn't already have stuff in the window. Since I know nothing of GLUT, I don't know what can stay and what can go, and my attempts to figure it out just lead to build errors. The other issue I'm hitting is that when I do find one that lines out how to start one from an empty project, it just gives me code to copy and paste without telling me anything of it. That code usually has something in it as well.

If anyone can point me in a direction where I can learn to make a proper, empty GLUT window that is cross OS, that would be amazing. By cross OS, I mean where I can take the code and compile it on any system that I put Code::Blocks on, given I also have OpenGL and GLUT installed. But that last part is typically not a problem with most modern OSes, from what I've heard.

EDIT: During my research, I have learned that GLUT is no longer supported. I'm searching for a nice alternative that will work with Code::Blocks, is cross-platform, and that I can put OpenGL graphics. If there are any suggestions, that would be wonderful.
Last edited on
Use SDL for you're input gathering and setting up the window, then use OpenGL to render to the window.
Topic archived. No new replies allowed.