os/graphics/m3g/m3gcore11/inc/m3g_compositingmode.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2003 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: CompositingMode interface
    15 *
    16 */
    17 
    18 #ifndef __M3G_COMPOSITINGMODE_H__
    19 #define __M3G_COMPOSITINGMODE_H__
    20 
    21 /*!
    22  * \internal
    23  * \file
    24  * \brief CompositingMode interface
    25  */
    26 
    27 #include "m3g_object.h"
    28 #include "m3g_gl.h"
    29 #include "m3g_rendercontext.h"
    30 
    31 /*!
    32  * \internal
    33  * \brief CompositingMode object
    34  */
    35 struct M3GCompositingModeImpl
    36 {
    37     Object object;
    38 
    39     M3Gint blendingMode;
    40     GLfloat alphaThreshold;
    41     GLboolean depthTest;
    42     GLboolean depthWrite;
    43     GLboolean colorWrite;
    44     GLboolean alphaWrite;
    45     GLfloat factor;
    46     GLfloat units;
    47 };
    48 
    49 /*----------------------------------------------------------------------
    50  * Internal functions
    51  *--------------------------------------------------------------------*/
    52 
    53 static void m3gApplyCompositingMode(CompositingMode *compositingMode, RenderContext *ctx);
    54 static void m3gApplyDefaultCompositingMode(M3Gbool alphaWrite);
    55 
    56 #endif /*__M3G_COMPOSITINGMODE_H__*/