X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fmodel3d-view%2Fmodel3d-view-impl.h;h=a3fed9b04e56519e9c572fd51291a48e9fef3820;hp=2202409a87c8057082b45e1ba86e97b3c458e16e;hb=b1e8521ad77e7b4e62b59613b2edef64429130e9;hpb=fddb0059f61f9e5dfd10521a14e15e6bad110d06 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..a3fed9b 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 @@ -104,9 +104,9 @@ private: virtual void OnInitialize(); /** - * @copydoc CustomActorImpl::OnStageConnection() + * @copydoc CustomActorImpl::OnSceneConnection() */ - virtual void OnStageConnection( int depth ); + virtual void OnSceneConnection( int depth ); private: @@ -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