(AutomatedTests) Synchronise TestGLAbstraction 50/27750/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 18 Sep 2014 13:31:23 +0000 (14:31 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 18 Sep 2014 13:31:23 +0000 (14:31 +0100)
Change-Id: Iaac4650a8d885426a59267cacfcb2d8af8f2c936

automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-gl-abstraction.h

index 47a5b3a..b094fde 100644 (file)
@@ -729,6 +729,10 @@ public:
 
   inline void Scissor(GLint x, GLint y, GLsizei width, GLsizei height)
   {
+    mScissorParams.x = x;
+    mScissorParams.y = y;
+    mScissorParams.width = width;
+    mScissorParams.height = height;
   }
 
   inline void ShaderBinary(GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary, GLsizei length)
@@ -1643,6 +1647,18 @@ public: // TEST FUNCTIONS
     ATTRIB_TYPE_LAST
   };
 
+  struct ScissorParams
+  {
+    GLint x;
+    GLint y;
+    GLsizei width;
+    GLsizei height;
+
+    ScissorParams() : x( 0 ), y( 0 ), width( 0 ), height( 0 ) { }
+  };
+
+  // Methods to check scissor tests
+  inline const ScissorParams& GetScissorParams() const { return mScissorParams; }
 
 private:
   GLuint     mCurrentProgram;
@@ -1820,6 +1836,8 @@ private:
     mVertexAttribArrayState[ index ] = state;
     mVertexAttribArrayChanged = true;
   }
+
+  ScissorParams mScissorParams;
 };
 
 template <>