ecere/gfx/drivers/OpenGLDisplayDriver: Exporting access to nearPlane
authorJerome St-Louis <jerome@ecere.com>
Thu, 27 Nov 2014 04:34:02 +0000 (23:34 -0500)
committerJerome St-Louis <jerome@ecere.com>
Thu, 15 Oct 2015 00:19:25 +0000 (20:19 -0400)
- Used for projection matrix work around on Nexus 10 (objects far way not lit up)

ecere/src/gfx/drivers/OpenGLDisplayDriver.ec

index 829dc41..5ba81a5 100644 (file)
@@ -122,6 +122,16 @@ import "Display"
 
 static double nearPlane = 1;
 
+public double glesGetNearPlane()
+{
+   return nearPlane;
+}
+
+public void glesSetNearPlane(double value)
+{
+   nearPlane = value;
+}
+
 #define glLoadMatrix glLoadMatrixd
 #define glMultMatrix glMultMatrixd
 #define glGetMatrix  glGetDoublev