Add vgClear code to get drawing on screen bug235_bringup_0
authorFaisal Memon <faisal.memon@nokia.com>
Fri, 22 Oct 2010 10:13:49 +0100
branchbug235_bringup_0
changeset 202 5b9bcf58d962
parent 193 bbf967b65d9e
child 203 71a455a885b7
Add vgClear code to get drawing on screen
egl/sfegltest/src/eglrendering.cpp
--- a/egl/sfegltest/src/eglrendering.cpp	Thu Sep 30 18:43:06 2010 +0100
+++ b/egl/sfegltest/src/eglrendering.cpp	Fri Oct 22 10:13:49 2010 +0100
@@ -210,6 +210,20 @@
 	
 	CEGLRendering::EGLCheckReturnError(eglMakeCurrent(iDisplay, iSurface, iSurface, iContextVG));
 	RDebug::Printf("CEGLRendering::ConstructL 8");
+	
+    VGfloat clearColour[] = { 0.5f, 0.5f, 0.5f, 1.0f };
+    vgSetfv(VG_CLEAR_COLOR, 4, clearColour);
+    RDebug::Printf("CEGLRendering::ConstructL 9");
+    vgSeti(VG_IMAGE_QUALITY, VG_IMAGE_QUALITY_NONANTIALIASED);
+    RDebug::Printf("CEGLRendering::ConstructL 10");
+    vgSeti(VG_RENDERING_QUALITY, VG_RENDERING_QUALITY_NONANTIALIASED);
+    RDebug::Printf("CEGLRendering::ConstructL 11");
+    vgSeti(VG_MATRIX_MODE, VG_MATRIX_IMAGE_USER_TO_SURFACE);
+    RDebug::Printf("CEGLRendering::ConstructL 12");
+    vgClear(0, 0, windowSize.iWidth, windowSize.iHeight);
+    RDebug::Printf("CEGLRendering::ConstructL 13");
+    eglSwapBuffers(iDisplay, iSurface);
+    RDebug::Printf("CEGLRendering::ConstructL 14");
 	}