sl@0: /* sl@0: * Copyright (c) 2004 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 the License "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: Platform specific configuration sl@0: * sl@0: */ sl@0: sl@0: sl@0: #ifndef __M3G_CONFIG_H__ sl@0: #define __M3G_CONFIG_H__ sl@0: sl@0: /*! \file sl@0: * \brief Platform specific configuration for the Nokia M3G API implementation. sl@0: */ sl@0: sl@0: #define M3G_NATIVE_LOADER sl@0: sl@0: /* Constants that work for MBX and Gerbera */ sl@0: #define M3G_MAX_VIEWPORT_DIMENSION 1024 sl@0: #define M3G_MAX_TEXTURE_DIMENSION 1024 sl@0: sl@0: /* Support antialiasing */ sl@0: #define M3G_SUPPORT_ANTIALIASING M3G_TRUE sl@0: sl@0: /*! sl@0: * \internal sl@0: * \def M3G_ENABLE_GLES_RESOURCE_HANDLING sl@0: * \brief Allow GLES resource freeing sl@0: * sl@0: * This feature can be used with HW renderers with external memory architecture sl@0: * to free all graphics resources allocated by M3G. sl@0: * sl@0: * Enabling this feature is likely to increase host memory consumption (a copy of sl@0: * all texture image data has to be kept kept in host memory), so it's advised to sl@0: * undefine the flag when using SW GLES or HW GLES with unified memory architecture. sl@0: */ sl@0: #define M3G_ENABLE_GLES_RESOURCE_HANDLING sl@0: sl@0: sl@0: #if defined(M3G_DEBUG) sl@0: /* sl@0: #define M3G_ENABLE_PROFILING sl@0: #define M3G_LOGLEVEL \ sl@0: M3G_LOG_FATAL_ERRORS|M3G_LOG_USER_ERRORS|M3G_LOG_WARNINGS \ sl@0: |M3G_LOG_MEMORY_USAGE|M3G_LOG_INTERFACE|M3G_LOG_OBJECTS \ sl@0: |M3G_LOG_STAGES sl@0: */ sl@0: #endif sl@0: sl@0: #endif /*__M3G_CONFIG_H__*/