equal
deleted
inserted
replaced
|
1 // Copyright (c) 2010 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 #ifndef __EGLRENDERING_H__ |
|
16 #define __EGLRENDERING_H__ |
|
17 |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <w32std.h> |
|
21 #include <EGL/egl.h> |
|
22 #include <VG/openvg.h> |
|
23 #include <VG/vgu.h> |
|
24 |
|
25 class CEGLRendering : public CBase |
|
26 { |
|
27 public: |
|
28 static CEGLRendering* NewL(RWindow& aWindow, TBool); |
|
29 static CEGLRendering* NewLC(RWindow& aWindow,TBool); |
|
30 |
|
31 ~CEGLRendering(); |
|
32 |
|
33 void Start(); |
|
34 void Stop(); |
|
35 |
|
36 static void EGLCheckError(); |
|
37 static void EGLCheckReturnError(EGLBoolean aBool); |
|
38 static void VGCheckError(); |
|
39 void UpdateDisplay(); |
|
40 static TInt TimerCallBack(TAny* aDemo); |
|
41 |
|
42 private: |
|
43 CEGLRendering(RWindow& aWindow); |
|
44 void ConstructL(TBool); |
|
45 |
|
46 private: |
|
47 RWindow& iWindow; |
|
48 |
|
49 CPeriodic* iTimer; |
|
50 |
|
51 CFbsBitmap* iBitmap; |
|
52 TInt iCount; |
|
53 |
|
54 EGLDisplay iDisplay; |
|
55 EGLSurface iSurface; |
|
56 EGLContext iContextVG; |
|
57 }; |
|
58 |
|
59 |
|
60 #endif |