graphicstest/uibench/s60/src/eglrendering.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1  // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2  // All rights reserved.
       
     3  // This component and the accompanying materials are made available
       
     4  // under the terms of "Eclipse Public License v1.0"
       
     5  // which accompanies this distribution, and is available
       
     6  // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7  //
       
     8  // Initial Contributors:
       
     9  // Nokia Corporation - initial contribution.
       
    10  //
       
    11  // Contributors:
       
    12  //
       
    13  // Description:
       
    14  //
       
    15 
       
    16 #ifndef __EGLRENDERING_H__
       
    17 #define __EGLRENDERING_H__
       
    18 
       
    19 
       
    20 #include <EGL/egl.h>
       
    21 #include <VG/openvg.h>
       
    22 #include <VG/vgu.h>
       
    23 #include <w32std.h>
       
    24 #include <coedef.h>
       
    25 
       
    26 
       
    27 class MEngine;
       
    28 
       
    29 
       
    30 class CEGLRendering : public CBase
       
    31 	{
       
    32 public:
       
    33 	static CEGLRendering* NewL(RWindow& aWindow);
       
    34 	static CEGLRendering* NewLC(RWindow& aWindow);
       
    35 
       
    36 	~CEGLRendering();
       
    37 
       
    38 	static void EGLCheckError();
       
    39 	static void EGLCheckReturnError(EGLBoolean aBool);
       
    40 	static void VGCheckError();
       
    41 	
       
    42 	void UpdateDisplay();
       
    43 	
       
    44 private:
       
    45 	CEGLRendering(RWindow& aWindow);
       
    46 	void ConstructL();	
       
    47 	
       
    48 private:
       
    49 	RWindow& iWindow;			
       
    50 	MEngine* iCurrentDemo;
       
    51 	
       
    52 	EGLDisplay iDisplay;
       
    53 	EGLSurface iSurface;
       
    54 	EGLContext iContextVG;
       
    55 	
       
    56 	TInt iCount;
       
    57 	TBool iShowMirrorToggled;
       
    58 	TBool iBusySwapping;
       
    59 	};
       
    60 
       
    61 
       
    62 #endif