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: // sl@0: sl@0: /** sl@0: @file sl@0: @publishedPartner sl@0: @prototype sl@0: */ sl@0: sl@0: #ifndef SGCONST_H sl@0: #define SGCONST_H sl@0: sl@0: #include sl@0: sl@0: sl@0: /** sl@0: @publishedPartner sl@0: @prototype sl@0: @deprecated sl@0: sl@0: Identifier of the primary screen, which always exists. sl@0: */ sl@0: const TInt KSgScreenIdMain = 0; sl@0: sl@0: sl@0: /** sl@0: @publishedPartner sl@0: @prototype sl@0: @deprecated sl@0: sl@0: Value that specifies, when passed in as screen identifier, that a resource can be sl@0: used on all screens. sl@0: */ sl@0: const TInt KSgScreenIdAny = -1; sl@0: sl@0: sl@0: /** sl@0: @publishedPartner sl@0: @prototype sl@0: @deprecated sl@0: sl@0: Set of flags that specify how a graphics resource can be used in different rendering sl@0: pipelines. sl@0: */ sl@0: enum TSgUsageFlags sl@0: { sl@0: /** The resource cannot be used in any rendering pipeline. */ sl@0: ESgUsageNone = 0, sl@0: /** The resource can be bound as source of DirectGDI rendering. */ sl@0: ESgUsageDirectGdiSource = 0x0001, sl@0: /** The resource can be bound as target of DirectGDI rendering. */ sl@0: ESgUsageDirectGdiTarget = 0x0002, sl@0: /** The resource can be bound as source of the composition engine. */ sl@0: ESgUsageCompositionSource = 0x0004, sl@0: /** The resource can be bound as target of the composition engine. */ sl@0: ESgUsageCompositionTarget = 0x0008, sl@0: /** The resource can be used directly as screen contents. */ sl@0: ESgUsageScreenSource = 0x0010, sl@0: /** The resource can be bound as OpenGL ES 1.X 2D texture. */ sl@0: ESgUsageOpenGlesTexture2D = 0x0020, sl@0: /** The resource can be bound as target of OpenGL ES 1.X rendering. */ sl@0: ESgUsageOpenGlesTarget = 0x0040, sl@0: /** The resource can be bound as OpenVG image. */ sl@0: ESgUsageOpenVgImage = 0x0080, sl@0: /** The resource can be bound as target of OpenVG rendering. */ sl@0: ESgUsageOpenVgTarget = 0x0100, sl@0: /** The resource can be used as destination in calls to eglCopyBuffers(). */ sl@0: ESgUsageEglCopyBuffersTarget = 0x0200, sl@0: /** The resource can be bound as OpenGL ES 2.0 2D texture. */ sl@0: ESgUsageOpenGles2Texture2D = 0x0400, sl@0: /** The resource can be bound as target of OpenGL ES 2.0 rendering. */ sl@0: ESgUsageOpenGles2Target = 0x0800, sl@0: /** The resource can be bound as source of window graphics context rendering. @see CWindowGc */ sl@0: ESgUsageWindowGcSource = 0x1000 sl@0: }; sl@0: sl@0: sl@0: /** sl@0: @publishedPartner sl@0: @prototype sl@0: @deprecated sl@0: sl@0: Components of TSgCpuAccess. This enumeration is not intended to be used directly, but sl@0: provides components for the definition of TSgCpuAccess. sl@0: */ sl@0: enum TSgCpuAccessComponents sl@0: { sl@0: /** Value of the bit in TSgCpuAccess that indicates ability to read when set. */ sl@0: ESgCpuAccessReadable = 1, sl@0: /** Value of the bit in TSgCpuAccess that indicates ability to write when set. */ sl@0: ESgCpuAccessWritable = 2 sl@0: }; sl@0: sl@0: sl@0: /** sl@0: @publishedPartner sl@0: @prototype sl@0: @deprecated sl@0: sl@0: Enumeration used to specify how a graphics resource can be accessed by the CPU. sl@0: */ sl@0: enum TSgCpuAccess sl@0: { sl@0: /** The resource cannot be accessed by the CPU. */ sl@0: ESgCpuAccessNone = 0, sl@0: /** The resource can only be read by the CPU. */ sl@0: ESgCpuAccessReadOnly = ESgCpuAccessReadable, sl@0: /** The resource can only be written by the CPU. */ sl@0: ESgCpuAccessWriteOnly = ESgCpuAccessWritable, sl@0: /** The resource can be both read and written by the CPU. */ sl@0: ESgCpuAccessReadWrite = ESgCpuAccessReadable | ESgCpuAccessWritable sl@0: }; sl@0: sl@0: sl@0: #endif // SGCONST_H