source: trunk/src/lolgl.h @ 673

Last change on this file since 673 was 673, checked in by sam, 9 years ago

Put the OpenGL header handling in <lolgl.h> for more convenience.

  • Property svn:keywords set to Id
File size: 756 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
10
11//
12// The GL support
13// --------------
14//
15
16#if !defined __DH_LOLGL_H__
17#define __DH_LOLGL_H__
18
19#if defined HAVE_GL_1X
20#   if defined __APPLE__ && defined __MACH__
21#       include <OpenGL/gl.h>
22#   else
23#       define GL_GLEXT_PROTOTYPES
24#       include <GL/gl.h>
25#   endif
26#elif defined HAVE_GLES_1X
27#   include <GLES/gl.h>
28#elif defined HAVE_GLES_2X
29#   include <GLES2/gl.h>
30#endif
31
32#endif // __DH_LOLGL_H__
33
Note: See TracBrowser for help on using the repository browser.