1 #ifndef DALI_INTEGRATION_GRAPHICS_CONFIG_H
2 #define DALI_INTEGRATION_GRAPHICS_CONFIG_H
5 * Copyright (c) 2024 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.
21 #include <dali/devel-api/rendering/renderer-devel.h>
23 namespace Dali::Integration
26 * GraphicsConfig is an abstract interface, used to access OpenGRAPHICS services.
27 * A concrete implementation must be created for each platform, and provided when creating the
28 * Dali::Integration::Core object.
33 // Protected construction & deletion
34 GraphicsConfig() = default; ///< Protected constructor so an instance of this class cannot be created.
35 virtual ~GraphicsConfig() = default; ///< Virtual protected destructor, no deletion through this interface.
38 // Not copyable but movable
39 GraphicsConfig(const GraphicsConfig&) = delete; ///< Deleted copy constructor.
40 GraphicsConfig(GraphicsConfig&&) = default; ///< Default move constructor.
41 GraphicsConfig& operator=(const GraphicsConfig&) = delete; ///< Deleted copy assignment operator.
42 GraphicsConfig& operator=(GraphicsConfig&&) = default; ///< Default move assignment operator.
45 * Returns current graphicses can support the blend equation
46 * @Return true current graphicses support the blend equation
48 virtual bool IsBlendEquationSupported(DevelBlendEquation::Type blendEquation) = 0;
51 * Returns shader prefix of shading language version.
52 * @Return shader prefix of shading language version.
54 virtual std::string GetShaderVersionPrefix() = 0;
57 * Returns vertex shader prefix including shading language version.
58 * @Return vertex shader prefix including shading language version.
60 virtual std::string GetVertexShaderPrefix() = 0;
63 * Returns fragment shader prefix including shading language version and extension information.
64 * @Return fragment shader prefix including shading language version and extension information.
66 virtual std::string GetFragmentShaderPrefix() = 0;
69 } // namespace Dali::Integration