graphicstest/uibench/s60/src/windows/tsmallwindowopengl.cpp
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     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 
       
    23 #include "tsmallwindowopengl.h"
       
    24 
       
    25 
       
    26 const TInt KOpenGLResolution = 2;
       
    27 
       
    28 
       
    29 CTWindow* CTSmallWindowOpenGL::NewL(RWsSession &aWs, 
       
    30         const RWindowTreeNode &aParent, 
       
    31         const TPoint& aStartingPoint,
       
    32         const TSize& aWindowSize)
       
    33     {
       
    34     CTSmallWindowOpenGL* self = new (ELeave)CTSmallWindowOpenGL(aStartingPoint, aWindowSize);
       
    35     CleanupStack::PushL(self);
       
    36     self->ConstructL(aWs, aParent);
       
    37     CleanupStack::Pop(self);
       
    38     return self;
       
    39     }
       
    40 
       
    41 CTSmallWindowOpenGL::CTSmallWindowOpenGL(const TPoint& aStartingPoint, const TSize& aWindowSize) :
       
    42         CTFlowWindowOpenGL(aStartingPoint, aWindowSize)
       
    43     {
       
    44     // empty
       
    45     }
       
    46 
       
    47 void CTSmallWindowOpenGL::ConstructL(RWsSession &aWs, const RWindowTreeNode &aParent)
       
    48     {
       
    49     CTFlowWindowOpenGL::ConstructL(aWs, aParent);
       
    50     SetResolutionL(KOpenGLResolution);    
       
    51     }
       
    52 
       
    53 CTSmallWindowOpenGL::~CTSmallWindowOpenGL()
       
    54     {
       
    55     // empty
       
    56     }