From: <me...@bi...> - 2000-08-01 16:24:30
|
I got mesa 3.3 working on Windows (built and linked to opengl32.dll). One more bit of difficulty I ran into was with header inclusion order. - glapi.c needs a bunch of prototypes for extenstions to compile correctly. - glext.h has them, but they only get compiled in if GL_GLEXT_PROTOTYPES is defined. The chain of inclusion with glapi under Windows/MSVC goes like this: glapi.c includes glheader.h, which includes mesa_wgl.h, which includes gl/gl.h, which includes gl/glext.h (since GL_GLEXT_LEGACY is not defined). But nowhere in there does GL_GLEXT_PROTOTYPES get defined. It currently gets defined in glheader.h just AFTER the inclusion of mesa_wgl.h after which glheader includes gl.h and glext.h directly. So I fixed by defining GL_GLEXT_PROTOTYPES it just before #including mesa_wgl.h in glheader.h. Sound ok? --Bill Baxter |