os/graphics/m3g/m3gcore11/inc/m3g_config.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/m3g/m3gcore11/inc/m3g_config.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,60 @@
     1.4 +/*
     1.5 +* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of the License "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: Platform specific configuration
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +#ifndef __M3G_CONFIG_H__
    1.23 +#define __M3G_CONFIG_H__
    1.24 +
    1.25 +/*! \file
    1.26 + * \brief Platform specific configuration for the Nokia M3G API implementation.
    1.27 + */
    1.28 +
    1.29 +#define M3G_NATIVE_LOADER
    1.30 +
    1.31 +/* Constants that work for MBX and Gerbera */
    1.32 +#define M3G_MAX_VIEWPORT_DIMENSION  1024
    1.33 +#define M3G_MAX_TEXTURE_DIMENSION   1024
    1.34 +
    1.35 +/* Support antialiasing */
    1.36 +#define M3G_SUPPORT_ANTIALIASING    M3G_TRUE
    1.37 +
    1.38 +/*!
    1.39 + * \internal
    1.40 + * \def M3G_ENABLE_GLES_RESOURCE_HANDLING
    1.41 + * \brief Allow GLES resource freeing 
    1.42 + *
    1.43 + * This feature can be used with HW renderers with external memory architecture 
    1.44 + * to free all graphics resources allocated by M3G. 
    1.45 + *
    1.46 + * Enabling this feature is likely to increase host memory consumption (a copy of 
    1.47 + * all texture image data has to be kept kept in host memory), so it's advised to 
    1.48 + * undefine the flag when using SW GLES or HW GLES with unified memory architecture.
    1.49 + */
    1.50 +#define M3G_ENABLE_GLES_RESOURCE_HANDLING
    1.51 +
    1.52 +
    1.53 +#if defined(M3G_DEBUG)
    1.54 +/*
    1.55 +#define M3G_ENABLE_PROFILING
    1.56 +#define M3G_LOGLEVEL \
    1.57 +    M3G_LOG_FATAL_ERRORS|M3G_LOG_USER_ERRORS|M3G_LOG_WARNINGS \
    1.58 +    |M3G_LOG_MEMORY_USAGE|M3G_LOG_INTERFACE|M3G_LOG_OBJECTS \
    1.59 +    |M3G_LOG_STAGES
    1.60 +*/
    1.61 +#endif
    1.62 +
    1.63 +#endif /*__M3G_CONFIG_H__*/