1 #ifndef DALI_RENDERING_ADDON_H
2 #define DALI_RENDERING_ADDON_H
5 * Copyright (c) 2021 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-toolkit/internal/visuals/npatch/npatch-visual.h>
22 #include <dali/devel-api/common/addon-binder.h>
31 * Interface of Overdrawing AddOn
33 class RenderingAddOn : public Dali::AddOn::AddOnBinder
35 using TextureManager = Dali::Toolkit::Internal::TextureManager;
39 : Dali::AddOn::AddOnBinder("oo-rendering", 0u)
43 // Bind AddOn functions
46 Dali::Geometry(TextureManager::TextureId, uint32_t&, uint32_t&));
50 Dali::Geometry(TextureManager::TextureId, const Dali::Devel::PixelBuffer& pixelBuffer));
58 Dali::Geometry(const void*, const Uint16Pair&, uint32_t*));
62 void(Renderer&, const void*));
66 void*(const Devel::PixelBuffer&, void*));
73 * Single instance of the addon
76 static RenderingAddOn& Get()
78 static RenderingAddOn* addon = nullptr;
81 addon = new RenderingAddOn();
91 } // namespace Internal
92 } // namespace Toolkit
95 #endif //DALI_CMAKE_RENDERING_ADDON_H