Browse Source

Indent the nested ifdefs for better readability.

pull/23/head
Vladimír Vondruš 13 years ago
parent
commit
2ec933c000
  1. 33
      src/OpenGL.h

33
src/OpenGL.h

@ -33,32 +33,31 @@
/* Desktop OpenGL */ /* Desktop OpenGL */
#ifndef MAGNUM_TARGET_GLES #ifndef MAGNUM_TARGET_GLES
#include <OpenGL/GL/gl_magnum.h> #include <OpenGL/GL/gl_magnum.h>
/* NaCl has its own gl2.h, the official one causes linker issues. Additionaly /* NaCl has its own gl2.h, the official one causes linker issues. Additionaly
to NaCl's gl2ext.h we are including our own to prevent undeclared symbol to NaCl's gl2ext.h we are including our own to prevent undeclared symbol
errors with some recent extensions. */ errors with some recent extensions. */
#elif defined(CORRADE_TARGET_NACL) #elif defined(CORRADE_TARGET_NACL)
/* Enable function prototypes (the supported ones shouldn't fail at link time) */
#define GL_GLEXT_PROTOTYPES
/* Enable function prototypes (the supported ones shouldn't fail at link time) */ #include <GLES2/gl2.h>
#define GL_GLEXT_PROTOTYPES #include <GLES2/gl2ext.h>
#undef __gl2ext_h_
#include <GLES2/gl2.h> #include <OpenGL/GLES2/gl2ext.h>
#include <GLES2/gl2ext.h>
#undef __gl2ext_h_
#include <OpenGL/GLES2/gl2ext.h>
/* Generic OpenGL ES */ /* Generic OpenGL ES */
#else #else
#include <OpenGL/KHR/khrplatform.h> #include <OpenGL/KHR/khrplatform.h>
#ifndef MAGNUM_TARGET_GLES2 #ifndef MAGNUM_TARGET_GLES2
#include <OpenGL/GLES3/gl3platform.h> #include <OpenGL/GLES3/gl3platform.h>
#include <OpenGL/GLES3/gl3.h> #include <OpenGL/GLES3/gl3.h>
#else #else
#include <OpenGL/GLES2/gl2platform.h> #include <OpenGL/GLES2/gl2platform.h>
#include <OpenGL/GLES2/gl2.h> #include <OpenGL/GLES2/gl2.h>
#include <OpenGL/GLES2/gl2ext.h> #include <OpenGL/GLES2/gl2ext.h>
#endif #endif
#endif #endif
#endif #endif

Loading…
Cancel
Save