SDL_opengl.h including windows.h

Hi:
I think that the idea of SDL_opengl.h is wonderful. However, I hate including windows.h
if it can be helped. So, why not doing a hack as glut.h does, instead of including it
in SDL_opengl.h under win32?

Bruno Mart?nez

The correct thing to do for OpenGL is to define WIN32_LEAN_AND_MEAN when
including GL/gl.h I think. It’s not so lean or mean as one might hope,
but it is the correct thing to do.

The less hacks in SDL the better, IMO. Some of them are necessary and
unavoidable. This one’s neither though. (Although, I’m one to talk, my
OpenGL setup is an even bigger hack, even if I do believe it’s not
avoidable…)On Wed, Jun 19, 2002 at 03:33:31PM -0300, Bruno Mart?nez wrote:

I think that the idea of SDL_opengl.h is wonderful. However, I hate
including windows.h if it can be helped. So, why not doing a hack as
glut.h does, instead of including it in SDL_opengl.h under win32?


Joseph Carter Have chainsaw will travel

be careful, some twit might quote you
out of context…

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020619/2bbde86e/attachment.pgp