I want to write some OpenGL 3.2, likely also OpenGL 4 stuff on Linux, and I just saw that libsdl 1.2 (the latest stable release) supports only 2.x. LibSDL 1.3 (which is in development) should support it, but it'll be a while before it gets into mainstream distributions. Is there any library out there right now which allows me to create an OpenGL window with a context of my choice, and preferably also help me with the input?
我想写一些OpenGL 3.2,也可能是Linux上的OpenGL 4,我刚刚看到libsdl 1.2(最新的稳定版本)只支持2.x。LibSDL 1.3(正在开发中)应该支持它,但要进入主流发行版还需要一段时间。现在有什么库可以让我创建一个OpenGL窗口,其中包含我选择的上下文,最好还能帮助我输入?
If not, is there some small library which reduces the pain with Xlib? My Windows path for OpenGL is written with plain-old WinAPI, with own message pump etc., and I wonder if X11 is worse than that. A quick web search indicates that one should use a library above Xlib. I'd be happy with something that just wraps XLib, so I can do the OpenGL context on my own with glX if XLib is really that horrible.
如果没有,是否有一个小的库可以减少Xlib的痛苦?我的OpenGL的Windows路径是用普通的WinAPI编写的,有自己的消息泵等等,我想知道X11是否比这个更糟糕。快速的web搜索表明应该使用Xlib之上的库。如果XLib真的很糟糕的话,我可以用glX自己创建OpenGL上下文。
1 个解决方案
#1
3
GLFW (GL Framework) supports creating 3.0+ contexts, and has input support, you can read about it on:
GLFW (GL框架)支持创建3.0+上下文,并支持输入,您可以在以下内容中阅读:
- http://gpwiki.org/index.php/GLFW
- http://gpwiki.org/index.php/GLFW
- http://www.glfw.org/
- http://www.glfw.org/
Sadly, the main page is down now.
遗憾的是,现在主页已经关闭。
#1
3
GLFW (GL Framework) supports creating 3.0+ contexts, and has input support, you can read about it on:
GLFW (GL框架)支持创建3.0+上下文,并支持输入,您可以在以下内容中阅读:
- http://gpwiki.org/index.php/GLFW
- http://gpwiki.org/index.php/GLFW
- http://www.glfw.org/
- http://www.glfw.org/
Sadly, the main page is down now.
遗憾的是,现在主页已经关闭。