Commits

Marc Lepage committed f03b51e Draft

Convert GLee includes to GLES includes.

Comments (0)

Files changed (11)

src/modules/graphics/opengl/Canvas.h

 #include "common/math.h"
 #include "common/Matrix.h"
 #include "OpenGL.h"
-#include "GLee.h"
+#ifdef HAVE_GLES
+	#include <GLES2/gl2.h>
+#else
+	#include "GLee.h"
+#endif
 
 namespace love
 {

src/modules/graphics/opengl/Font.h

 #include "graphics/Image.h"
 
 #include "OpenGL.h"
-#include "GLee.h"
+#ifdef HAVE_GLES
+	#include <GLES2/gl2.h>
+#else
+	#include "GLee.h"
+#endif
 
 namespace love
 {

src/modules/graphics/opengl/Graphics.h

 #include <cmath>
 
 // OpenGL
-#include "GLee.h"
+#ifdef HAVE_GLES
+	#include <GLES2/gl2.h>
+#else
+	#include "GLee.h"
+#endif
 
 // LOVE
 #include "graphics/Graphics.h"

src/modules/graphics/opengl/Image.h

 #include "OpenGL.h"
 
 // OpenGL
-#include "GLee.h"
+#ifdef HAVE_GLES
+	#include <GLES2/gl2.h>
+#else
+	#include "GLee.h"
+#endif
 
 namespace love
 {

src/modules/graphics/opengl/OpenGL.h

 #ifndef LOVE_COMMON_OPENGL_H
 #define LOVE_COMMON_OPENGL_H
 
-#include "GLee.h"
+#ifdef HAVE_GLES
+	#include <GLES2/gl2.h>
+#else
+	#include "GLee.h"
+#endif
 
 namespace love
 {

src/modules/graphics/opengl/ParticleSystem.cpp

 
 #include "common/math.h"
 
-#include "GLee.h"
+#ifdef HAVE_GLES
+	#include <GLES2/gl2.h>
+#else
+	#include "GLee.h"
+#endif
 #include <cmath>
 #include <cstdlib>
 

src/modules/graphics/opengl/PixelEffect.cpp

  **/
 
 #include "PixelEffect.h"
-#include "GLee.h"
+#ifdef HAVE_GLES
+	#include <GLES2/gl2.h>
+#else
+	#include "GLee.h"
+#endif
 
 namespace
 {

src/modules/graphics/opengl/Quad.cpp

 #include "common/Matrix.h"
 
 // GLee
-#include "GLee.h"
+#ifdef HAVE_GLES
+	#include <GLES2/gl2.h>
+#else
+	#include "GLee.h"
+#endif
 
 // STD
 #include <cstring> // For memcpy

src/modules/graphics/opengl/SpriteBatch.h

 #include "graphics/Color.h"
 
 // OpenGL
-#include "GLee.h"
+#ifdef HAVE_GLES
+	#include <GLES2/gl2.h>
+#else
+	#include "GLee.h"
+#endif
 
 namespace love
 {

src/modules/graphics/opengl/VertexBuffer.h

 #include "graphics/Volatile.h"
 
 // OpenGL
-#include "GLee.h"
+#ifdef HAVE_GLES
+	#include <GLES2/gl2.h>
+#else
+	#include "GLee.h"
+#endif
 
 namespace love
 {

src/modules/graphics/opengl/wrap_Graphics.cpp

  **/
 
 #include "wrap_Graphics.h"
-#include "GLee.h"
+#ifdef HAVE_GLES
+	#include <GLES2/gl2.h>
+#else
+	#include "GLee.h"
+#endif
 #include "graphics/DrawQable.h"
 #include "image/ImageData.h"
 #include "font/Rasterizer.h"