sl@0: // Copyright (c) 2007-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: // Graphics Resource - constants sl@0: // sl@0: sl@0: #ifndef SGCONST_H sl@0: #define SGCONST_H sl@0: sl@0: #include sl@0: #include sl@0: sl@0: /** sl@0: The constants defined in TSgUsageBits correspond to the different usages for which sl@0: an image can be created. They can be combined using the bitwise OR operator to sl@0: specify more than one usage. sl@0: */ sl@0: enum TSgUsageBits sl@0: { sl@0: /** Usage as a VGImage with OpenVG via EGLImage.*/ sl@0: ESgUsageBitOpenVgImage = 0x0001, sl@0: /** Usage as a two-dimensional texture with OpenGL ES 1.x via EGLImage.*/ sl@0: ESgUsageBitOpenGlesTexture2D = 0x0002, sl@0: /** Usage as a two-dimensional texture with OpenGL ES 2.x via EGLImage.*/ sl@0: ESgUsageBitOpenGles2Texture2D = 0x0004, sl@0: /** Usage as a target of an OpenVG rendering context.*/ sl@0: ESgUsageBitOpenVgSurface = 0x0010, sl@0: /** Usage as a target of an OpenGL ES 1.x rendering context.*/ sl@0: ESgUsageBitOpenGlesSurface = 0x0020, sl@0: /** Usage as a target of an OpenGL ES 2.x rendering context.*/ sl@0: ESgUsageBitOpenGles2Surface = 0x0040, sl@0: /** Usage as a target of an OpenGL rendering context.*/ sl@0: ESgUsageBitOpenGlSurface = 0x0080 sl@0: }; sl@0: sl@0: /** sl@0: The subset of pixel formats defined in pixelformats.h which are guaranteed to be sl@0: supported by all implementations of the Graphics Resource API. sl@0: */ sl@0: enum TSgPixelFormat sl@0: { sl@0: ESgPixelFormatARGB_8888_PRE = EUidPixelFormatARGB_8888_PRE, sl@0: ESgPixelFormatARGB_8888 = EUidPixelFormatARGB_8888, sl@0: ESgPixelFormatXRGB_8888 = EUidPixelFormatXRGB_8888, sl@0: ESgPixelFormatRGB_565 = EUidPixelFormatRGB_565, sl@0: ESgPixelFormatA_8 = EUidPixelFormatA_8 sl@0: }; sl@0: sl@0: #endif // SGCONST_H