OpenGL and SDL, annoying <windows.h>

Started by
2 comments, last by Ithyl_Chantresonge 21 years, 4 months ago
I just installed SDL for use with my Visual C++ ... I copied the exemple on OpenGL with SDL from the SDL documentation and hit compile ... and there I was disappointed to realize that some things in the OpenGL headers were not defined, I needed to #include <windows.h> before my GL headers. That solved the problem, but is there any alternative include files for OpenGL that won''t require inclusion of windows.h ? ... I hate everything that makes my code OS dependant. Thanks in advance.
Advertisement
There''s an SDL_opengl.h header that you could try.

Thanks for the very quick answer, that''s exactly the information I was looking for.
I remember that I had to modify that header, since it gave me soem ansty errors about some things being redefined...

Height Map Editor

This topic is closed to new replies.

Advertisement