Menu

OpenGL + SDL ! = cross platform

Neow
2002-12-22
2012-09-26
  • Neow

    Neow - 2002-12-22

    Greetings,

    I've downloaded the SDL pak from dev. I tough that SDL is cross platform but when I play it with opengl ( wich suppose to be cross platform too ) the opengl need the windows.h to work. This seems to be happend in Dev-Cpp latest version coz i dont think i encounter such problem in the previouse ver. Is this some kind of "window version" of opengl or there is a way to stop opengl relying using windows.h ?

    All help and information are appreciated.
    xamc 2@@2 22th Dec.

     
    • Nobody/Anonymous

      i have the same problem with DevC++ and Visual C++ 6.

      Use:
      #ifdef WIN32
      #include <windows.h>   
      #endif

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.