|
1 // Copyright (c) 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 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #ifndef TFLOWWINDOWOPENGL_H |
|
23 #define TFLOWWINDOWOPENGL_H |
|
24 |
|
25 #include <e32std.h> |
|
26 #include <e32base.h> |
|
27 |
|
28 #include "twindow.h" |
|
29 #include "eglenvironment.h" |
|
30 #include "model.h" |
|
31 |
|
32 |
|
33 /** |
|
34 * Renders and draws OpenGL ES scenes to the screen. |
|
35 * |
|
36 */ |
|
37 class CTFlowWindowOpenGL : public CTWindow |
|
38 { |
|
39 public: |
|
40 virtual ~CTFlowWindowOpenGL(); |
|
41 static CTWindow* NewL(RWsSession &aWs, |
|
42 const RWindowTreeNode &aParent, |
|
43 const TPoint& aStartingPoint, |
|
44 const TSize& aWindowSize); |
|
45 |
|
46 virtual void RenderL(); |
|
47 |
|
48 protected: |
|
49 CTFlowWindowOpenGL(const TPoint& aStartingPoint, const TSize& aWindowSize); |
|
50 void ConstructL(RWsSession &aWs, const RWindowTreeNode &aParent); |
|
51 void SetResolutionL(TInt aResolution); |
|
52 |
|
53 private: |
|
54 CEglEnvironment* iEglEnvironment; |
|
55 CModel* iModel; |
|
56 TInt iTime; |
|
57 }; |
|
58 |
|
59 #endif // TFLOWWINDOWOPENGL_H |