X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fmodel3d-view%2Fmodel3d-view-impl.h;h=51388f306cb71b4b3d2edb73246e666cd9f4c98e;hb=b56e45f7d2cf803ab0124448060149f16a6c088e;hp=2202409a87c8057082b45e1ba86e97b3c458e16e;hpb=f758f35a6f525b556a101b0785f797e3ee3c4b1a;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/model3d-view/model3d-view-impl.h b/dali-toolkit/internal/controls/model3d-view/model3d-view-impl.h index 2202409..51388f3 100644 --- a/dali-toolkit/internal/controls/model3d-view/model3d-view-impl.h +++ b/dali-toolkit/internal/controls/model3d-view/model3d-view-impl.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_INTERNAL_MODEL3D_VIEW_H__ -#define __DALI_TOOLKIT_INTERNAL_MODEL3D_VIEW_H__ +#ifndef DALI_TOOLKIT_INTERNAL_MODEL3D_VIEW_H +#define DALI_TOOLKIT_INTERNAL_MODEL3D_VIEW_H /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2016 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ */ // EXTERNAL INCLUDES -#include +#include // INTERNAL INCLUDES #include @@ -146,11 +146,20 @@ private: void UpdateShaderUniforms(); + /* + * @brief Given a specific shader type, find out which properties are necessary for it. + * + * @param[in] illuminationType The type of shader we intend to use. + * @return A bitmask of the properties we require to be loaded to use the given shader. + */ + int GetShaderProperties( Toolkit::Model3dView::IlluminationType illuminationType ); + + ObjLoader mObjLoader; //Properties std::string mObjUrl; - std::string mMaterialUrl; + std::string mTextureSetUrl; std::string mImagesUrl; std::string mTexture0Url; std::string mTexture1Url; @@ -166,7 +175,7 @@ private: //Render members Shader mShader; - Material mMaterial; + TextureSet mTextureSet; Geometry mMesh; Renderer mRenderer; }; @@ -192,4 +201,4 @@ inline const Toolkit::Internal::Model3dView& GetImpl( const Toolkit::Model3dView } // namespace Dali -#endif // __DALI_TOOLKIT_INTERNAL_MODEL_VIEW_H__ +#endif // DALI_TOOLKIT_INTERNAL_MODEL_VIEW_H