开发者

Portable toolkit library for creating OpenGL applications

I am new to OpenGL and I have been doing some tutorials utilizing GLUT.

GLUT seems to be quite clunky and "old-fashioned" (if you know what I mean :D) so I am asking if there are a bit more straightforward and easier (perha开发者_StackOverflow社区ps more intuitive) libraries to substitute GLUT functionality?


Sounds like GLFW is what you are looking for. It is pretty simple library but much more intuitive than GLUT. It has basic support for keyboard, mouse and joystick inputs too.

It is also a pretty small library so it does have small overhead too. Typically GLFW adds only 20-30kb overhead if linked statically. Portability is excellent too, platform support includes all major desktop platforms (Windows, Mac OS X, Unix like system with X Window System such as FreeBSD and Linux).


I use SDL for this. It is a cross platform library that allows me to create an OpenGL window and rendering context and it also handles mouse, keyboard and joystick input. It supports sound output and some addon libraries like SDL_mixer for easier audio support and SDL_ttf for TrueType font support.

Starting with SDL 1.3 it is also possible to specify which OpenGL Version the created OpenGL context is supposed to support and using SDL 1.3 I can have the same code work on Windows, Linux and my Android Phone. SDL 1.3 also seems to include some mouse and touch gesture recognition stuff.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜