uiacceltk/hitchcock/CommonInc/coretkoptions.mmh
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2008-2008 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 "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:  Common compiler options for coretoolkit and renderers
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // This file is a collection of options that affect both hitchcock.dll
       
    20 // and the different backends.
       
    21 // Both coretoolkit.mmp and all renderer backend .mmp files must include
       
    22 // this file to make sure the flags are defined in all relevant places
       
    23 // and no conflicts arise because some flag has a different value in one place
       
    24 // MACRO affects the source files, #define affects .mmp files
       
    25 
       
    26 
       
    27 // Uses glReadPixels instead of glCopyTexSubImage in CHuiGles10TextureProcessor.
       
    28 // and CHuiGles20TextureProcessor.
       
    29 // If there is a need to control the renderers separately, move this to each
       
    30 // .mmp file and turn on for each renderer separately
       
    31 // This flag is not used in hitchcock.dll
       
    32 // MACRO           HUI_PROCESSOR_READPIXELS
       
    33 
       
    34 // Use this to compile on software driver. Will disable full screen anti-aliasing.
       
    35 // This does not seem to have any effect at the moment
       
    36 // MACRO           OPENGLES_SW_DRIVER
       
    37 
       
    38 // Here is the common control for disabling all default render surface
       
    39 // handling in systems that do not support pBuffers.
       
    40 // Has no effect on BitGDI.
       
    41 // The disabling can be done for all renderers or only for some
       
    42 // If disabled, a display must be created before textures can be loaded.
       
    43 // If pBuffers are to be disabled for all, remove comments from both #define and MACRO
       
    44 
       
    45 // #define DISABLE_ALL_DEFAULT_RENDER_SURFACES
       
    46 // MACRO DISABLE_ALL_DEFAULT_RENDER_SURFACES
       
    47 
       
    48 // Do not turn the flags on by hand in .cpp files, they are needed
       
    49 // both in HuiDisplay.cpp and in the individual renderers
       
    50 
       
    51 #ifdef DISABLE_ALL_DEFAULT_RENDER_SURFACES
       
    52 // These are always left without comment marks because they are
       
    53 // controlled by the common flag.
       
    54 MACRO           GLES10_DISABLE_DEFAULT_RENDER_SURFACE
       
    55 MACRO           GLES20_DISABLE_DEFAULT_RENDER_SURFACE
       
    56 MACRO           VG10_DISABLE_DEFAULT_RENDER_SURFACE
       
    57 #else
       
    58 // These are the individual definitions to be used to disable 
       
    59 // the pBuffer only for some renderers and allow others to use it.
       
    60 // If the flag that disables all pBuffers is turned on,
       
    61 // setting these individual flags here has no effect.
       
    62 // MACRO           GLES10_DISABLE_DEFAULT_RENDER_SURFACE
       
    63 MACRO           GLES20_DISABLE_DEFAULT_RENDER_SURFACE
       
    64 MACRO           VG10_DISABLE_DEFAULT_RENDER_SURFACE
       
    65 #endif
       
    66