m3g/m3gcore11/inc/m3g_animationcontroller.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     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: AnimationController interface
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __M3G_ANIMATIONCONTROLLER_H__
       
    19 #define __M3G_ANIMATIONCONTROLLER_H__
       
    20 
       
    21 /*!
       
    22  * \internal
       
    23  * \file
       
    24  * \brief AnimationController interface
       
    25  */
       
    26 
       
    27 #include "m3g_gl.h"
       
    28 #include "m3g_object.h"
       
    29 
       
    30 /*!
       
    31  * \internal
       
    32  * \brief \c AnimationController object instance
       
    33  */
       
    34 struct M3GAnimationControllerImpl
       
    35 {
       
    36     Object object;
       
    37 
       
    38     M3Gint      activationTime;
       
    39     M3Gint      deactivationTime;
       
    40     M3Gfloat    weight;
       
    41     M3Gfloat    speed;
       
    42     M3Gint      refWorldTime;
       
    43     M3Gfloat    refSequenceTime;
       
    44 };
       
    45 
       
    46 /*----------------------------------------------------------------------
       
    47  * Internal functions
       
    48  *--------------------------------------------------------------------*/
       
    49 
       
    50 static M3Gbool  m3gIsActive(const AnimationController *controller,
       
    51                             M3Gint worldTime);
       
    52 
       
    53 static M3Gint m3gTimeToActivation(const AnimationController *controller,
       
    54                                   M3Gint worldTime);
       
    55 
       
    56 static M3Gint m3gTimeToDeactivation(const AnimationController *controller,
       
    57                                     M3Gint worldTime);
       
    58 
       
    59 #endif /*__M3G_ANIMATIONCONTROLLER_H__*/
       
    60