First public contribution.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @internalComponent - Internal Symbian test code
23 #include "tsmallwindowopengl.h"
26 const TInt KOpenGLResolution = 2;
29 CTWindow* CTSmallWindowOpenGL::NewL(RWsSession &aWs,
30 const RWindowTreeNode &aParent,
31 const TPoint& aStartingPoint,
32 const TSize& aWindowSize)
34 CTSmallWindowOpenGL* self = new (ELeave)CTSmallWindowOpenGL(aStartingPoint, aWindowSize);
35 CleanupStack::PushL(self);
36 self->ConstructL(aWs, aParent);
37 CleanupStack::Pop(self);
41 CTSmallWindowOpenGL::CTSmallWindowOpenGL(const TPoint& aStartingPoint, const TSize& aWindowSize) :
42 CTFlowWindowOpenGL(aStartingPoint, aWindowSize)
47 void CTSmallWindowOpenGL::ConstructL(RWsSession &aWs, const RWindowTreeNode &aParent)
49 CTFlowWindowOpenGL::ConstructL(aWs, aParent);
50 SetResolutionL(KOpenGLResolution);
53 CTSmallWindowOpenGL::~CTSmallWindowOpenGL()