uiaccelerator_plat/alf_core_toolkit_api/inc/uiacceltk/HuiMaterial.h
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 #ifndef __HUIMATERIAL_H__
       
    21 #define __HUIMATERIAL_H__
       
    22 
       
    23 
       
    24 #include <gdi.h>
       
    25 #include <uiacceltk/HuiImage.h>
       
    26 #include <uiacceltk/HuiTimedValue.h>
       
    27 
       
    28     
       
    29 /** Surface material. */    
       
    30 enum THuiMaterialPreset
       
    31     {
       
    32     /** Material that uses custom parameters. */
       
    33     EHuiMaterialCustom,
       
    34     
       
    35     EHuiMaterialChrome,
       
    36     EHuiMaterialPlastic,
       
    37     EHuiMaterialGlass,
       
    38     EHuiMaterialBrushedMetal,
       
    39     EHuiMaterialTexture,
       
    40     EHuiMaterialShadow
       
    41     };
       
    42 
       
    43 
       
    44 
       
    45 /**
       
    46  * THuiMaterial describes the appearance properties of a surface material.
       
    47  * Used with 3D objects.
       
    48  */
       
    49 struct THuiMaterial
       
    50     {
       
    51 
       
    52     /**
       
    53      * Default constructor for initializing the struct.
       
    54      */
       
    55     IMPORT_C THuiMaterial();
       
    56 
       
    57     /** Preset type. */
       
    58     THuiMaterialPreset iPreset;
       
    59     
       
    60     /** Color. */
       
    61     TRgb iColor;
       
    62     
       
    63     /** Image used as the texture for the surface. */
       
    64     THuiImage iTextureImage;
       
    65     
       
    66     /** Image used as the specular reflection for the surface. */
       
    67     THuiImage iSpecularImage;
       
    68 
       
    69     /** Strength of specular reflections. */
       
    70     THuiTimedValue iSpecular;
       
    71     
       
    72 private:
       
    73 
       
    74     TInt iSpare1;
       
    75     TInt iSpare2;
       
    76     
       
    77     };
       
    78 
       
    79 
       
    80 #endif // __HUIMATERIAL_H__