uiaccelerator_plat/alf_visual_api/tsrc/src/testplatalfvisualblocksproceduralmesh.cpp
branchRCL_3
changeset 17 3ac8bf5c5014
parent 0 15bf7259bb7c
equal deleted inserted replaced
11:46927d61fef3 17:3ac8bf5c5014
    39     _LIT( KTestProMeshMakeMethodsL, "TestProMeshMakeMethodsL" );
    39     _LIT( KTestProMeshMakeMethodsL, "TestProMeshMakeMethodsL" );
    40     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestProMeshMakeMethodsL );
    40     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestProMeshMakeMethodsL );
    41     // Print to log file
    41     // Print to log file
    42     iLog->Log( KTestProMeshMakeMethodsL );
    42     iLog->Log( KTestProMeshMakeMethodsL );
    43     
    43     
       
    44     // Mesh not supported at the moment
       
    45     STIF_ASSERT_LEAVES_WITH( KErrNotSupported,
       
    46                              CAlfMeshVisual::AddNewL( *iAlfCtl ) );
       
    47 /* Not supported at the moment
    44     CAlfMeshVisual* meshVisual = CAlfMeshVisual::AddNewL( *iAlfCtl );
    48     CAlfMeshVisual* meshVisual = CAlfMeshVisual::AddNewL( *iAlfCtl );
    45     meshVisual->CreateMeshL( EAlfMeshTypeProcedural );
    49     meshVisual->CreateMeshL( EAlfMeshTypeProcedural );
    46     CAlfProceduralMesh* proMesh = meshVisual->ProceduralMesh();
    50     CAlfProceduralMesh* proMesh = meshVisual->ProceduralMesh();
    47     STIF_ASSERT_NOT_NULL(  proMesh );
    51     STIF_ASSERT_NOT_NULL(  proMesh );
    48     proMesh->MakeCubeL( 1, 1, 1, 1 );
    52     proMesh->MakeCubeL( 1, 1, 1, 1 );
    49     proMesh->MakeSphereL( 1, 1, 1 );
    53     proMesh->MakeSphereL( 1, 1, 1 );
    50     proMesh->MakeTorusL( 1, 1, 1, 1, 1 );
    54     proMesh->MakeTorusL( 1, 1, 1, 1, 1 );
    51     
    55 */    
    52     return KErrNone;
    56     return KErrNone;
    53     }
    57     }
    54 
    58 
    55 // -----------------------------------------------------------------------------
    59 // -----------------------------------------------------------------------------
    56 // CTestPlatAlfVisual::TestProMeshMaterialMethodsL
    60 // CTestPlatAlfVisual::TestProMeshMaterialMethodsL
    63     _LIT( KTestProMeshMaterialMethodsL, "TestProMeshMaterialMethodsL" );
    67     _LIT( KTestProMeshMaterialMethodsL, "TestProMeshMaterialMethodsL" );
    64     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestProMeshMaterialMethodsL );
    68     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestProMeshMaterialMethodsL );
    65     // Print to log file
    69     // Print to log file
    66     iLog->Log( KTestProMeshMaterialMethodsL );
    70     iLog->Log( KTestProMeshMaterialMethodsL );
    67     
    71     
       
    72     // Mesh not supported at the moment
       
    73     STIF_ASSERT_LEAVES_WITH( KErrNotSupported,
       
    74                              CAlfMeshVisual::AddNewL( *iAlfCtl ) );
       
    75 /* Not supported at the moment
    68     CAlfMeshVisual* meshVisual = CAlfMeshVisual::AddNewL( *iAlfCtl );
    76     CAlfMeshVisual* meshVisual = CAlfMeshVisual::AddNewL( *iAlfCtl );
    69     meshVisual->CreateMeshL( EAlfMeshTypeProcedural );
    77     meshVisual->CreateMeshL( EAlfMeshTypeProcedural );
    70     CAlfProceduralMesh* proMesh = meshVisual->ProceduralMesh();
    78     CAlfProceduralMesh* proMesh = meshVisual->ProceduralMesh();
    71     STIF_ASSERT_NOT_NULL(  proMesh );
    79     STIF_ASSERT_NOT_NULL(  proMesh );
    72     TAlfMaterial material = proMesh->Material();
    80     TAlfMaterial material = proMesh->Material();
    73     proMesh->SetMaterial( material );
    81     proMesh->SetMaterial( material );
    74     
    82 */    
    75     return KErrNone;
    83     return KErrNone;
    76     }
    84     }
    77 
    85 
    78 
    86 
    79 //  [End of File]
    87 //  [End of File]