From: Eero P. <epa...@ko...> - 2000-06-04 16:59:46
|
Brian Paul wrote: > > Eero Pajarre wrote: > > > > I am not sure how to fix this, except by placing the > > definitions of HGLRC etc back to one of the > > GL/*.h files, or including <windows.h> there. > > As you've seen, I removed a lot of Windows-related stuff from the > gl.h header because it doesn't belong there. Sorry for breaking > things on Windows. > > It seems to me that HGLRC stuff should go in mesa_wgl.h. > I have just done a major software/hardware change on my setup. Among other things I installed was the "Microsoft Platform SDK". The SDK contains lots of new header files, which it plugs in to the VC++ compilation process. If no special options are used, these files apparently actively break any user defined HGLRC (or any other opaque type) definitions. I understand that enforcing the opaquenes of the types does have its merit. As I want to get my program to compile (still using Mesa gl*.h files) I had to create my own header file which first includes windows.h and then includes the gl*.h files. It looks like that in order to be compatible with the different alternatives, the only way is to include windows.h... I think this is an issue especially for glut.h because it is supposed to not require the user to include any "windows.h" like headers. Eero |