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() |