os/graphics/m3g/m3gcore11/inc/m3g_config.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: Platform specific configuration
    15 *
    16 */
    17 
    18 
    19 #ifndef __M3G_CONFIG_H__
    20 #define __M3G_CONFIG_H__
    21 
    22 /*! \file
    23  * \brief Platform specific configuration for the Nokia M3G API implementation.
    24  */
    25 
    26 #define M3G_NATIVE_LOADER
    27 
    28 /* Constants that work for MBX and Gerbera */
    29 #define M3G_MAX_VIEWPORT_DIMENSION  1024
    30 #define M3G_MAX_TEXTURE_DIMENSION   1024
    31 
    32 /* Support antialiasing */
    33 #define M3G_SUPPORT_ANTIALIASING    M3G_TRUE
    34 
    35 /*!
    36  * \internal
    37  * \def M3G_ENABLE_GLES_RESOURCE_HANDLING
    38  * \brief Allow GLES resource freeing 
    39  *
    40  * This feature can be used with HW renderers with external memory architecture 
    41  * to free all graphics resources allocated by M3G. 
    42  *
    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.
    46  */
    47 #define M3G_ENABLE_GLES_RESOURCE_HANDLING
    48 
    49 
    50 #if defined(M3G_DEBUG)
    51 /*
    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 \
    56     |M3G_LOG_STAGES
    57 */
    58 #endif
    59 
    60 #endif /*__M3G_CONFIG_H__*/