egl/egltest/inc/egltestcommoninisettings.h
changeset 0 5d03bc08d59c
child 26 15986eb6c500
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 2007-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 */
       
    20 
       
    21 #ifndef __EGLTEST_INI_SETTINGS_H__
       
    22 #define __EGLTEST_INI_SETTINGS_H__
       
    23 
       
    24 #ifndef __INIPARSER_H__
       
    25 #include <cinidata.h>
       
    26 #endif // __INIPARSER_H__
       
    27 #include <e32base.h>
       
    28 #include <pixelformats.h>
       
    29 #include <VG/openvg.h>
       
    30 
       
    31 // INI file name
       
    32 _LIT(KConfigFileName,"z:\\egltest\\egltest_settings.ini");
       
    33 
       
    34 // INI file sections for source formats and surface formats 
       
    35 _LIT(KSectionImageSourceFormats,"ImageSourceFormats");
       
    36 _LIT(KSectionPixmapSgSurfaceFormats,"PixmapSgSurfaceFormats");
       
    37 _LIT(KSectionPixmapFbsSurfaceFormats,"PixmapFbsSurfaceFormats");
       
    38 _LIT(KSectionPBufferSurfaceFormats,"PBufferSurfaceFormats");
       
    39 _LIT(KSectionWindowSurfaceFormats,"WindowSurfaceFormats");
       
    40 _LIT(KKeyNumFormats,"NumFormats");
       
    41 _LIT(KKeyFormatX,"Format%d");
       
    42 
       
    43 // INI file sections for EGL/VG/GLES extensions 
       
    44 #ifdef SYMBIAN_GRAPHICS_EGL_SGIMAGELITE
       
    45 _LIT(KSectionQueryExtensions,"QueryString_Extensions");
       
    46 #else
       
    47 _LIT(KSectionQueryExtensions,"QueryString_Extensions_tb92");
       
    48 #endif
       
    49 _LIT(KKeyCountExtensionsEGL,"CountExtensionsEGL");
       
    50 _LIT(KKeyCountExtensionsVG,"CountExtensionsVG");
       
    51 _LIT(KKeyCountExtensionsGLES,"CountExtensionsGLES");
       
    52 _LIT(KKeyExtensionEGLX,"ExtensionEGL%d");
       
    53 _LIT(KKeyExtensionVGX,"ExtensionVG%d");
       
    54 _LIT(KKeyExtensionGLESX,"ExtensionGLES%d");
       
    55 
       
    56 
       
    57 NONSHARABLE_CLASS(CEglTestCommonIniSettings) : public CBase 
       
    58 	{
       
    59 public:
       
    60 	IMPORT_C static CEglTestCommonIniSettings* NewL();
       
    61 	IMPORT_C static CEglTestCommonIniSettings* NewLC();
       
    62 	IMPORT_C ~CEglTestCommonIniSettings();	
       
    63 	
       
    64 	IMPORT_C VGImageFormat GetVgFormat(const TDesC& aSectioName, const TInt aWhich);	
       
    65 	IMPORT_C TUidPixelFormat GetPixelFormat(const TDesC& aSectioName, const TInt aWhich);
       
    66 	IMPORT_C TInt GetNumberOfFormats(const TDesC& aSectioName);
       
    67     IMPORT_C TInt GetNumberOfIterations(const TDesC& aSectioName);
       
    68     IMPORT_C TSize GetImageSize(const TDesC& aSectioName); 
       
    69 private:
       
    70 	void ConstructL();
       
    71 private:
       
    72 	CIniData* iIniData;
       
    73 	};
       
    74 
       
    75 #endif