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