os/graphics/m3g/m3gcore11/inc/m3g_fog.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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: Fog interface
    15 *
    16 */
    17 
    18 #ifndef __M3G_FOG_H__
    19 #define __M3G_FOG_H__
    20 
    21 /*!
    22  * \internal
    23  * \file
    24  * \brief Fog interface
    25  */
    26 
    27 #include "m3g_object.h"
    28 #include "m3g_gl.h"
    29 
    30 struct M3GFogImpl
    31 {
    32 	Object object;
    33 
    34 	M3Gfloat density;
    35 	M3Gfloat start;
    36 	M3Gfloat end;
    37 	M3Gint mode;
    38 
    39     M3Guint color;
    40 };
    41 
    42 /*----------------------------------------------------------------------
    43  * Internal functions
    44  *--------------------------------------------------------------------*/
    45 
    46 static void m3gApplyFog(const Fog *self);
    47 static void m3gApplySpriteFog(const Fog *self, M3Gfloat eyeZ, M3Gfloat finalZ);
    48 
    49 #endif /*__M3G_FOG_H__*/