egl/sfegltest/src/eglrendering.cpp
branchbug235_bringup_0
changeset 202 5b9bcf58d962
parent 193 bbf967b65d9e
child 203 71a455a885b7
equal deleted inserted replaced
193:bbf967b65d9e 202:5b9bcf58d962
   208 	RDebug::Printf("CEGLRendering::ConstructL 7");
   208 	RDebug::Printf("CEGLRendering::ConstructL 7");
   209 	EGLCheckError();
   209 	EGLCheckError();
   210 	
   210 	
   211 	CEGLRendering::EGLCheckReturnError(eglMakeCurrent(iDisplay, iSurface, iSurface, iContextVG));
   211 	CEGLRendering::EGLCheckReturnError(eglMakeCurrent(iDisplay, iSurface, iSurface, iContextVG));
   212 	RDebug::Printf("CEGLRendering::ConstructL 8");
   212 	RDebug::Printf("CEGLRendering::ConstructL 8");
       
   213 	
       
   214     VGfloat clearColour[] = { 0.5f, 0.5f, 0.5f, 1.0f };
       
   215     vgSetfv(VG_CLEAR_COLOR, 4, clearColour);
       
   216     RDebug::Printf("CEGLRendering::ConstructL 9");
       
   217     vgSeti(VG_IMAGE_QUALITY, VG_IMAGE_QUALITY_NONANTIALIASED);
       
   218     RDebug::Printf("CEGLRendering::ConstructL 10");
       
   219     vgSeti(VG_RENDERING_QUALITY, VG_RENDERING_QUALITY_NONANTIALIASED);
       
   220     RDebug::Printf("CEGLRendering::ConstructL 11");
       
   221     vgSeti(VG_MATRIX_MODE, VG_MATRIX_IMAGE_USER_TO_SURFACE);
       
   222     RDebug::Printf("CEGLRendering::ConstructL 12");
       
   223     vgClear(0, 0, windowSize.iWidth, windowSize.iHeight);
       
   224     RDebug::Printf("CEGLRendering::ConstructL 13");
       
   225     eglSwapBuffers(iDisplay, iSurface);
       
   226     RDebug::Printf("CEGLRendering::ConstructL 14");
   213 	}
   227 	}
   214 
   228 
   215 
   229 
   216 /** Update the display */
   230 /** Update the display */
   217 void CEGLRendering::UpdateDisplay()
   231 void CEGLRendering::UpdateDisplay()