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=8e44911b6b53e81ced78756a8237281d7ed06577;hb=b1e8521ad77e7b4e62b59613b2edef64429130e9;hpb=a2de9cf491172cd5da9dc9ed60b17683dab6d7bc 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 8e44911..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,6 +146,15 @@ 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 @@ -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