🛠️🐜 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.

59 lines
1.6 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. #else
  20. #ifdef GLEW_STATIC
  21. #include "CustomGL/glew.h"
  22. #else
  23. #include <GL/glew.h>
  24. #endif//GLEW_STATIC
  25. #ifdef _WINDOWS
  26. #include <windows.h>
  27. //#include <GL/gl.h>
  28. //#include <GL/glu.h>
  29. #else
  30. //#include <GL/gl.h>
  31. //#include <GL/glu.h>
  32. #endif //_WINDOWS
  33. #endif //APPLE
  34. //disable glGetError
  35. //#undef glGetError
  36. //#define glGetError MyGetError
  37. //
  38. //GLenum inline MyGetError()
  39. //{
  40. // return 0;
  41. //}
  42. ///on Linux only glDrawElementsInstancedARB is defined?!?
  43. //#ifdef __linux
  44. //#define glDrawElementsInstanced glDrawElementsInstancedARB
  45. //
  46. //#endif //__linux
  47. #endif //__OPENGL_INCLUDE_H