Update contrib.
2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Platform specific configuration
19 #ifndef __M3G_CONFIG_H__
20 #define __M3G_CONFIG_H__
23 * \brief Platform specific configuration for the Nokia M3G API implementation.
26 #define M3G_NATIVE_LOADER
28 /* Constants that work for MBX and Gerbera */
29 #define M3G_MAX_VIEWPORT_DIMENSION 1024
30 #define M3G_MAX_TEXTURE_DIMENSION 1024
32 /* Support antialiasing */
33 #define M3G_SUPPORT_ANTIALIASING M3G_TRUE
37 * \def M3G_ENABLE_GLES_RESOURCE_HANDLING
38 * \brief Allow GLES resource freeing
40 * This feature can be used with HW renderers with external memory architecture
41 * to free all graphics resources allocated by M3G.
43 * Enabling this feature is likely to increase host memory consumption (a copy of
44 * all texture image data has to be kept kept in host memory), so it's advised to
45 * undefine the flag when using SW GLES or HW GLES with unified memory architecture.
47 #define M3G_ENABLE_GLES_RESOURCE_HANDLING
50 #if defined(M3G_DEBUG)
52 #define M3G_ENABLE_PROFILING
53 #define M3G_LOGLEVEL \
54 M3G_LOG_FATAL_ERRORS|M3G_LOG_USER_ERRORS|M3G_LOG_WARNINGS \
55 |M3G_LOG_MEMORY_USAGE|M3G_LOG_INTERFACE|M3G_LOG_OBJECTS \
60 #endif /*__M3G_CONFIG_H__*/