sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // The purpose of this program is to validate whether it is possible to sl@0: // write a vg1.1 client program which detects the available implementation sl@0: // at run time and then falls back onto vg1.0 calls if vg1.1 is not available. sl@0: // sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: @released sl@0: */ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: sl@0: /* sl@0: * The program is compiled with the appropriate macro. sl@0: */ sl@0: #include sl@0: #include sl@0: sl@0: GLDEF_C TInt E32Main() sl@0: { sl@0: RDebug::Printf("testing VG 1.0 function"); sl@0: VGPath path0 = vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F, 1.0f, 0.0f, 0, 0, VG_PATH_CAPABILITY_ALL); sl@0: RDebug::Printf("finished testing VG 1.0 function"); sl@0: sl@0: #ifdef OPENVG_VERSION_1_1 sl@0: if(strcmp((const char*)vgGetString(VG_VERSION), "1.1")==0) sl@0: { sl@0: RDebug::Printf("testing function introduced in 1.1"); sl@0: VGFont font = vgCreateFont(245); sl@0: vgDrawGlyph(font, 2, 256, VG_FALSE); sl@0: RDebug::Printf("finished testing function introduced in 1.1"); sl@0: } sl@0: #endif sl@0: sl@0: return 0; sl@0: }