sl@0: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef __EGLRENDERING_H__ sl@0: #define __EGLRENDERING_H__ sl@0: sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: sl@0: class MEngine; sl@0: sl@0: sl@0: class CEGLRendering : public CBase sl@0: { sl@0: public: sl@0: static CEGLRendering* NewL(RWindow& aWindow); sl@0: static CEGLRendering* NewLC(RWindow& aWindow); sl@0: sl@0: ~CEGLRendering(); sl@0: sl@0: static void EGLCheckError(); sl@0: static void EGLCheckReturnError(EGLBoolean aBool); sl@0: static void VGCheckError(); sl@0: sl@0: void UpdateDisplay(); sl@0: sl@0: private: sl@0: CEGLRendering(RWindow& aWindow); sl@0: void ConstructL(); sl@0: sl@0: private: sl@0: RWindow& iWindow; sl@0: MEngine* iCurrentDemo; sl@0: sl@0: EGLDisplay iDisplay; sl@0: EGLSurface iSurface; sl@0: EGLContext iContextVG; sl@0: sl@0: TInt iCount; sl@0: TBool iShowMirrorToggled; sl@0: TBool iBusySwapping; sl@0: }; sl@0: sl@0: sl@0: #endif