1 #ifndef __DALI_SHADER_EFFECT_WRAPPER_H__
2 #define __DALI_SHADER_EFFECT_WRAPPER_H__
5 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 #include <dali/public-api/dali-core.h>
23 #include <dali/devel-api/shader-effects/shader-effect.h>
24 #include "emscripten/emscripten.h"
25 #include "emscripten/bind.h"
37 * Creates a Dali shder effect
39 * @param[in] vertexPrefix The ShaderEffect vertexPrefix
40 * @param[in] vertex The ShaderEffect vertex
41 * @param[in] fragmentPrefix The ShaderEffect fragmentPrefix
42 * @param[in] fragment The ShaderEffect fragment
43 * @param[in] geometryHints The Geometry hints; an integer for Emscripten embind (additive enum)
45 * @returns The ShaderEffect
48 Dali::ShaderEffect CreateShaderEffect( const std::string& vertexPrefix, const std::string& vertex,
49 const std::string& fragmentPrefix, const std::string& fragment,
53 * Gets a property by name
55 * @param[in] self The ShaderEffect
56 * @param[in] name The uniform name
57 * @param[in] propertyValue The PropertyValue
60 void SetUniform( Dali::ShaderEffect& self, const std::string& name, Dali::Property::Value& propertyValue );
62 }; // namespace Emscripten
63 }; // namespace Internal