Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Portability with OpenGL

Name: Anonymous 2012-01-05 13:51

So, I need some advice.
I've been doing amateur game development for over a year, and been programming (primarily C++) for over 3 years. I know I'm not an expert.
Lately, I've been switching to OpenGL (from first SDL and then SFML), and I love the flexibility, but I realized that I have been writing entirely for X11, and I would love for my source code to be more platform-independent.
I know the many different ways I could do this, but some of them seem like they're not worth it. I hoped you guys might have a little experience, and could thus advise me.
I've considered glut because it's included with OpenGL most of the time, but it's outdated, and seems to not want to play nice without taking total control of my loop, which is inexcusable. freeglut seems to alleviate this, but would likely have to be included separately.
I've considered SFML or SDL, but I'd rather not include a large library when I'm not using anything but the windowing routines (SFML would be nicest here because it is very modular).
I've just discovered GLFW, and based on its description, it seem by far the most appealing:
>GLFW is a free, Open Source, multi-platform library for opening a window, creating an OpenGL context and managing input. It is easy to integrate into existing applications and does not lay claim to the main loop.

>GLFW is written in C and has native support for Windows, Mac OS X and many Unix-like systems using the X Window System, such as Linux and FreeBSD.

>GLFW is licensed under the zlib/libpng license.

What would /prog/ suggest?

Name: Anonymous 2012-01-05 14:19

I would suggest ditching C++ for C, and starting your SICP studies right now. In the meanwhile, GLFW is OK and FreeGLUT is OK too (stop being such a control freak). Plain GLUT is useless.

Name: Anonymous 2012-01-05 14:36

GLFW

SDL and SFML are bloated with random junk that you most likely won't use.

If you do need easy-to-use libraries there are plenty of libraries out there that just focus on single topics like image handling, networking, audio, threads, etc.

Also the next GLFW version is suppose to remove more bloat that it wasn't meant to have in the first place.

Name: Anonymous 2012-01-05 14:36

>>2
That's right. Fastrack this fool to a long and glorious career at Taco Bell.

Don't change these.
Name: Email:
Entire Thread Thread List