1 #ifndef DALI_TOOLKIT_IMAGE_VISUAL_SHADER_FACTORY_H
2 #define DALI_TOOLKIT_IMAGE_VISUAL_SHADER_FACTORY_H
5 * Copyright (c) 2018 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.
23 #include <dali-toolkit/internal/visuals/visual-factory-cache.h>
35 * ImageVisualShaderFactory is an object that provides and shares shaders between image visuals
37 class ImageVisualShaderFactory
46 ImageVisualShaderFactory();
51 ~ImageVisualShaderFactory();
54 * Get the standard image rendering shader.
55 * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object
56 * @param[in] atlasing Whether texture atlasing is applied.
57 * @param[in] defaultTextureWrapping Whether the default texture wrap mode is applied.
58 * @param[in] roundedCorner Whether the rounded corder is applied.
60 Shader GetShader( VisualFactoryCache& factoryCache, bool atlasing, bool defaultTextureWrapping, bool roundedCorner );
63 * Request the default vertex shader source.
64 * @return The default vertex shader source.
66 const char* GetVertexShaderSource();
69 * Request the default fragment shader source.
70 * @return The default fragment shader source.
72 const char* GetFragmentShaderSource();
77 * Undefined copy constructor.
79 ImageVisualShaderFactory(const ImageVisualShaderFactory&);
82 * Undefined assignment operator.
84 ImageVisualShaderFactory& operator=(const ImageVisualShaderFactory& rhs);
89 } // namespace Internal
91 } // namespace Toolkit
95 #endif // DALI_TOOLKIT_IMAGE_VISUAL_SHADER_FACTORY_H