m3g/m3gcore11/inc/m3g_tcache.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 /*
       
     2 * Copyright (c) 2005 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: Transformation cache interface
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __M3G_TCACHE_H__
       
    19 #define __M3G_TCACHE_H__
       
    20 
       
    21 /*!
       
    22  * \internal
       
    23  * \file
       
    24  * \brief Transformation cache interface
       
    25  */
       
    26 
       
    27 typedef struct TCacheImpl TCache;
       
    28 
       
    29 #include "m3g_node.h"
       
    30 
       
    31 /*----------------------------------------------------------------------
       
    32  * Internal functions
       
    33  *--------------------------------------------------------------------*/
       
    34 
       
    35 static  TCache* m3gCreateTransformCache (Interface *m3g);
       
    36 static  void    m3gDeleteTransformCache (TCache *cache);
       
    37 
       
    38 static  void    m3gCacheComposite       (TCache *cache, const Transformable *t, const Matrix *m);
       
    39 static  void    m3gCachePath            (TCache *cache, const Node *from, const Node *to, const Matrix *m);
       
    40 
       
    41 static  M3Gbool m3gGetCachedComposite   (const TCache *cache, const Transformable *t, Matrix *m);
       
    42 static  M3Gbool m3gGetCachedPath        (const TCache *cache, const Node *from, const Node *to, Matrix *m);
       
    43 
       
    44 static  void m3gInvalidateCachedPaths(TCache *cache, const Node *n);
       
    45 static  void m3gInvalidateCachedTransforms(TCache *cache, const Transformable *t);
       
    46 
       
    47 
       
    48 #endif /*__M3G_TCACHE_H__*/