macosx_glimp.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1999-2005 Id Software, Inc.
  4. This file is part of Quake III Arena source code.
  5. Quake III Arena source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake III Arena source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Foobar; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. #include <OpenGL/OpenGL.h>
  19. #include <OpenGL/gl.h>
  20. #include <OpenGL/glu.h>
  21. #ifndef GL_EXT_abgr
  22. #include <OpenGL/glext.h>
  23. #endif
  24. // This can be defined to use the CGLMacro.h support which avoids looking up
  25. // the current context.
  26. //#define USE_CGLMACROS
  27. #ifdef USE_CGLMACROS
  28. #include "macosx_local.h"
  29. #define cgl_ctx glw_state._cgl_ctx
  30. #include <OpenGL/CGLMacro.h>
  31. #endif