From: Jason M. <ko...@gm...> - 2008-09-22 02:57:25
|
So, GLE is progressing. I have added GLE to the CMake build, and it seems to build. I even ran the library through a test application; it seems to work. However, I can make no guarantees as to how well it actually works outside of Win32. I started off making GLE with the assumption that I'd be able to #include gl.h as part of it. Of course, the Windows version of gl.h includes 1.0, 1.1, and even defines some things for a few extensions. It isn't exactly consistent about how this stuff gets defined, and I suspect that non-Windows versions of gl.h include different stuff defined in different ways. In short, the only conclusion I can come to in the long term is to fully replace the gl.h include with one we create ourselves. This is how GLEW works. My main concern with this is how functions are defined in the different versions. Windows defines its function entrypoints for the stuff in gl.h, not as function pointers, but as live functions. I doubt that wglGetExtension will work for them. So I'm not entirely sure how to go about handling this part. Any suggestions? In the short term though, GLE will load all of the 2.1 or 3.0 core features. I haven't tested it on GL 3.0, but I know the loading code works in 2.1. It doesn't load any WGL stuff yet; that's my next task, which shouldn't be too difficult. |