Browse Source

Update Android OGL Video class

Support changes from PR #323 Vsync_get
dottools 9 years ago
parent
commit
87f2a9fe17

+ 8 - 0
engine/source/platformAndroid/AndroidOGLVideo.cpp

@@ -39,6 +39,8 @@
 #include "graphics/dgl.h"
 #include "debug/profiler.h"
 #include "platformAndroid/T2DActivity.h"
+#include "AndroidOGLVideo.h"
+#include "../platform/platformVideo_ScriptBinding.h"
 
 //Luma: Tap support
 extern void createMouseTapEvent(S32 nbrTaps, S32 x, S32 y);
@@ -259,6 +261,12 @@ bool OpenGLDevice::setGammaCorrection(F32 g)
     return true;
 }
 
+//------------------------------------------------------------------------------
+bool OpenGLDevice::getVerticalSync()
+{
+    return true;
+}
+
 //------------------------------------------------------------------------------
 bool OpenGLDevice::setVerticalSync(bool on)
 {

+ 1 - 0
engine/source/platformAndroid/AndroidOGLVideo.h

@@ -51,6 +51,7 @@ public:
     const char* getDriverInfo();
     bool getGammaCorrection(F32 &g);
     bool setGammaCorrection(F32 g);
+    bool getVerticalSync();
     bool setVerticalSync( bool on );
 };