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?
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?