Adding support of gl/glu.h


#1

Hi,

I am doing some OpenGL display and I have a request from you.
Can you modify your code in juce_opengl.h to add support of glu.h as done in following code ?
Thanks a lot if you can, tell me why if you can’t :wink:
Best regards

#if JUCE_WINDOWS
 #ifndef APIENTRY
  #define APIENTRY __stdcall
  #define CALLBACK __stdcall
  #define CLEAR_TEMP_APIENTRY 1
 #endif
 #ifndef WINGDIAPI
  #define WINGDIAPI __declspec(dllimport)
  #define CLEAR_TEMP_WINGDIAPI 1
 #endif
 #include <gl/GL.h>
 #include <gl/GLU.h>
 #ifdef CLEAR_TEMP_WINGDIAPI
  #undef WINGDIAPI
  #undef CLEAR_TEMP_WINGDIAPI
 #endif
 #ifdef CLEAR_TEMP_APIENTRY
  #undef APIENTRY
  #undef CLEAR_TEMP_APIENTRY
 #endif

#2

I don’t use GLU internally in the library, and other people may also not use it in their apps, so why would I include it? If you want to use it, just include it yourself in your own code!


#3

Ok, it is true :slight_smile: