b2b3d0d0447169e7dc5095851cd644961f3174fb
[platform/core/uifw/dali-adaptor.git] / adaptors / emscripten / wrappers / shader-effect-wrapper.h
1 #ifndef __DALI_SHADER_EFFECT_WRAPPER_H__
2 #define __DALI_SHADER_EFFECT_WRAPPER_H__
3
4 /*
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <dali/public-api/dali-core.h>
23 #include "emscripten/emscripten.h"
24 #include "emscripten/bind.h"
25
26 // INTERNAL INCLUDES
27
28 namespace Dali
29 {
30 namespace Internal
31 {
32 namespace Emscripten
33 {
34
35 /**
36  * Creates a Dali shder effect
37  *
38  * @param[in] vertexPrefix The ShaderEffect vertexPrefix
39  * @param[in] vertex The ShaderEffect vertex
40  * @param[in] fragmentPrefix The ShaderEffect fragmentPrefix
41  * @param[in] fragment The ShaderEffect fragment
42  * @param[in] geometryHints The Geometry hints; an integer for Emscripten embind (additive enum)
43  *
44  * @returns The ShaderEffect
45  *
46  */
47 Dali::ShaderEffect CreateShaderEffect( const std::string& vertexPrefix, const std::string& vertex,
48                                        const std::string& fragmentPrefix, const std::string& fragment,
49                                        int geometryHints );
50
51 /**
52  * Gets a property by name
53  *
54  * @param[in] self The ShaderEffect
55  * @param[in] name The uniform name
56  * @param[in] propertyValue The PropertyValue
57  *
58  */
59 void SetUniform( Dali::ShaderEffect& self, const std::string& name, Dali::Property::Value& propertyValue );
60
61 }; // namespace Emscripten
62 }; // namespace Internal
63 }; // namespace Dali
64
65 #endif // header