os/graphics/m3g/m3gcore11/inc/m3g_keyframesequence.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: KeyframeSequence interface
    15 *
    16 */
    17 
    18 #ifndef __M3G_KEYFRAMESEQUENCE_H__
    19 #define __M3G_KEYFRAMESEQUENCE_H__
    20 
    21 /*!
    22  * \internal
    23  * \file
    24  * \brief KeyframeSequence interface
    25  */
    26 
    27 #include "m3g_object.h"
    28 
    29 /*!
    30  * \internal
    31  * \brief KeyframeSequence class definition
    32  */
    33 
    34 struct M3GKeyframeSequenceImpl
    35 {
    36     Object object;
    37 
    38     M3Gfloat *keyframes;
    39     M3Gint   *keyframeTimes;
    40     M3Gint   numKeyframes;
    41     M3Gint   numComponents;
    42     M3Gint   duration;
    43     M3Gint   interpolation;
    44     M3Gbool  closed;
    45     M3Gint   firstValid;
    46     M3Gint   lastValid;
    47     M3Gint   probablyNext;
    48     M3Gbool  dirty;
    49     M3Gfloat *inTangents;
    50     M3Gfloat *outTangents;
    51     M3GQuat  *a;
    52     M3GQuat  *b;
    53 };
    54 
    55 /*----------------------------------------------------------------------
    56  * Internal functions
    57  *--------------------------------------------------------------------*/
    58 
    59 static M3Gint m3gGetNumComponents(const KeyframeSequence *sequence);
    60 static M3Gint m3gGetSample(KeyframeSequence *sequence,
    61                            M3Gint time,
    62                            M3Gfloat *sample);
    63 
    64 #endif /*__M3G_KEYFRAMESEQUENCE_H__*/