os/graphics/m3g/m3gcore11/inc/m3g_animationtrack.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: AnimationTrack interface
    15 *
    16 */
    17 
    18 #ifndef __M3G_ANIMATIONTRACK_H__
    19 #define __M3G_ANIMATIONTRACK_H__
    20 
    21 /*!
    22  * \internal
    23  * \file
    24  * \brief AnimationTrack interface
    25  */
    26 
    27 #include "m3g_gl.h"
    28 #include "m3g_keyframesequence.h"
    29 #include "m3g_animationcontroller.h"
    30 #include "m3g_object.h"
    31 
    32 struct M3GAnimationTrackImpl
    33 {
    34     Object object;
    35     KeyframeSequence *sequence;
    36     AnimationController *controller;
    37     M3Gint property;
    38 };
    39 
    40 typedef struct
    41 {
    42     M3Gfloat weight;
    43     M3Gint validity;
    44 } SampleInfo;
    45 
    46 /*----------------------------------------------------------------------
    47  * Internal functions
    48  *--------------------------------------------------------------------*/
    49 
    50 static void m3gGetContribution(const AnimationTrack *track, M3Gint time,
    51                                M3Gfloat *accumSamples, SampleInfo *sampleInfo);
    52 
    53 #endif /*__M3G_ANIMATIONTRACK_H__*/
    54