os/graphics/m3g/m3gcore11/inc/m3g_light.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200 (2014-06-10)
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: Light interface
    15 *
    16 */
    17 
    18 #ifndef __M3G_LIGHT_H__
    19 #define __M3G_LIGHT_H__
    20 
    21 /*!
    22  * \internal
    23  * \file
    24  * \brief Light interface
    25  */
    26 
    27 #include "m3g_gl.h"
    28 #include "m3g_node.h"
    29 
    30 /*!
    31  * \internal
    32  * \brief Light source node instance data
    33  */
    34 struct M3GLightImpl
    35 {
    36 	Node node;
    37 
    38 	M3Gfloat constantAttenuation;
    39 	M3Gfloat linearAttenuation;
    40 	M3Gfloat quadraticAttenuation;
    41 	
    42 	M3Gfloat intensity;
    43 	M3Guint color;
    44 	
    45 	M3Gint mode;
    46 	M3Gfloat spotAngle;
    47 	M3Gfloat spotExponent;
    48 };
    49     
    50 /*----------------------------------------------------------------------
    51  * Internal functions
    52  *--------------------------------------------------------------------*/
    53 
    54 static void m3gInitLight(Interface *m3g, Light *light);
    55 static void m3gApplyLight(const Light *self, GLenum glLight, const Vec4 *pos, const Vec4 *spotDir);
    56 
    57 #endif /*__M3G_LIGHT_H__*/