1 #ifndef __DALI_SHADER_EFFECT_WRAPPER_H__
2 #define __DALI_SHADER_EFFECT_WRAPPER_H__
5 * Copyright (c) 2015 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 "emscripten/emscripten.h"
24 #include "emscripten/bind.h"
36 * Creates a Dali shder effect
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)
44 * @returns The ShaderEffect
47 Dali::ShaderEffect CreateShaderEffect( const std::string& vertexPrefix, const std::string& vertex,
48 const std::string& fragmentPrefix, const std::string& fragment,
52 * Gets a property by name
54 * @param[in] self The ShaderEffect
55 * @param[in] name The uniform name
56 * @param[in] propertyValue The PropertyValue
59 void SetUniform( Dali::ShaderEffect& self, const std::string& name, Dali::Property::Value& propertyValue );
61 }; // namespace Emscripten
62 }; // namespace Internal