🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.8 KiB

  1. /*
  2. Copyright (c) 2012 Advanced Micro Devices, Inc.
  3. This software is provided 'as-is', without any express or implied warranty.
  4. In no event will the authors be held liable for any damages arising from the use of this software.
  5. Permission is granted to anyone to use this software for any purpose,
  6. including commercial applications, and to alter it and redistribute it freely,
  7. subject to the following restrictions:
  8. 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
  9. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  10. 3. This notice may not be removed or altered from any source distribution.
  11. */
  12. //Originally written by Erwin Coumans
  13. #ifndef __OPENGL_INCLUDE_H
  14. #define __OPENGL_INCLUDE_H
  15. //think different
  16. #if defined(__APPLE__) && !defined (VMDMESA)
  17. #include <OpenGL/OpenGL.h>
  18. //#include <OpenGL/gl.h>
  19. //#include <OpenGL/glu.h>
  20. //#import <Cocoa/Cocoa.h>
  21. #if defined (USE_OPENGL2) || defined (NO_OPENGL3)
  22. #include <OpenGL/gl.h>
  23. #else
  24. #include <OpenGL/gl3.h>
  25. #endif
  26. #else
  27. #ifdef GLEW_STATIC
  28. #include "CustomGL/glew.h"
  29. #else
  30. #include <GL/glew.h>
  31. #endif //GLEW_STATIC
  32. #ifdef _WINDOWS
  33. #include <windows.h>
  34. //#include <GL/gl.h>
  35. //#include <GL/glu.h>
  36. #else
  37. //#include <GL/gl.h>
  38. //#include <GL/glu.h>
  39. #endif //_WINDOWS
  40. #endif //APPLE
  41. //disable glGetError
  42. //#undef glGetError
  43. //#define glGetError MyGetError
  44. //
  45. //GLenum inline MyGetError()
  46. //{
  47. // return 0;
  48. //}
  49. ///on Linux only glDrawElementsInstancedARB is defined?!?
  50. //#ifdef __linux
  51. //#define glDrawElementsInstanced glDrawElementsInstancedARB
  52. //
  53. //#endif //__linux
  54. #endif //__OPENGL_INCLUDE_H