uiacceltk/hitchcock/coretoolkit/src/HuiMesh.cpp
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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 "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:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include "uiacceltk/HuiMesh.h"
       
    21 #include "uiacceltk/HuiStatic.h"
       
    22 #include "HuiRenderPlugin.h"
       
    23 #include "uiacceltk/HuiProbe.h"
       
    24 #include "uiacceltk/HuiUtil.h"
       
    25 
       
    26 
       
    27 EXPORT_C CHuiMesh* CHuiMesh::NewL(THuiMeshType aMeshType)
       
    28     {
       
    29     CHuiMesh* self = CHuiMesh::NewLC(aMeshType);
       
    30     CleanupStack::Pop(self);
       
    31     return self;
       
    32     }
       
    33     
       
    34 EXPORT_C CHuiMesh* CHuiMesh::NewLC(THuiMeshType aMeshType)
       
    35     {
       
    36     CHuiMesh* self = CHuiStatic::Renderer().CreateMeshL(aMeshType);
       
    37     CleanupStack::PushL(self);
       
    38     return self;
       
    39     }
       
    40 
       
    41 
       
    42 CHuiMesh::CHuiMesh(THuiMeshType aMeshType)
       
    43     : iMeshType(aMeshType)
       
    44     {
       
    45     HUI_PROBE_ASSOCIATE_WITH_CURRENT_SESSION
       
    46     HUI_PROBE_REPORT_CONSTRUCTED
       
    47     }
       
    48 
       
    49 EXPORT_C CHuiMesh::~CHuiMesh()
       
    50     {
       
    51     HUI_PROBE_REPORT_DESTRUCTED
       
    52     }
       
    53     
       
    54     
       
    55 EXPORT_C THuiMeshType CHuiMesh::MeshType() const
       
    56 	{
       
    57 	return iMeshType;
       
    58 	}
       
    59 
       
    60 
       
    61 EXPORT_C void CHuiMesh::Reset()
       
    62     {
       
    63     }
       
    64 
       
    65 
       
    66 EXPORT_C void CHuiMesh::StretchUniformly(TReal32 /*aXLimit*/, TReal32 /*aXOffset*/, 
       
    67                                          TReal32 /*aYLimit*/, TReal32 /*aYOffset*/,
       
    68                                          TReal32 /*aZLimit*/, TReal32 /*aZOffset*/) __SOFTFP
       
    69     {
       
    70     }
       
    71 
       
    72 
       
    73 EXPORT_C void CHuiMesh::ScaleUniformly(TReal32 /*aX*/, TReal32 /*aY*/, TReal32 /*aZ*/) __SOFTFP
       
    74     {
       
    75     }
       
    76 
       
    77 
       
    78 void CHuiMesh::Draw(CHuiGc& /*aGc*/, const THuiImage* /*aImage*/, 
       
    79                     const THuiImage* /*aSecondaryImage*/,
       
    80                     TReal32 /*aSecondaryAlpha*/) const __SOFTFP
       
    81     {
       
    82     }
       
    83 
       
    84 EXPORT_C TInt CHuiMesh::AnimationControllerCount() const
       
    85 	{
       
    86 	return 0;
       
    87 	}
       
    88 		
       
    89 EXPORT_C void CHuiMesh::SetAnimationPosition(TInt /*aControllerId*/, TReal32 /*aTraget*/, TInt /*aTime*/) __SOFTFP
       
    90 	{		
       
    91 	}
       
    92 	
       
    93 // ---------------------------------------------------------------------------
       
    94 // Start animation of the controller
       
    95 // ---------------------------------------------------------------------------
       
    96 //    
       
    97 EXPORT_C void CHuiMesh::StartAnimationController(TInt /*aControllerId*/)
       
    98 	{	
       
    99 	}
       
   100 
       
   101 // ---------------------------------------------------------------------------
       
   102 // Stop animation of the controller
       
   103 // ---------------------------------------------------------------------------
       
   104 //    
       
   105 EXPORT_C void CHuiMesh::StopAnimationController(TInt /*aControllerId*/)
       
   106 	{	
       
   107 	}
       
   108 	
       
   109 	
       
   110 
       
   111 HUI_SESSION_OBJECT_IMPL_EXPORT(CHuiMesh, ETypeMesh)
       
   112 
       
   113