1 #ifndef DALI_RENDERING_ADDON_H
2 #define DALI_RENDERING_ADDON_H
5 * Copyright (c) 2020 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/common/addon-binder.h>
22 #include <dali-toolkit/internal/visuals/npatch/npatch-visual.h>
32 * Interface of Overdrawing AddOn
34 class RenderingAddOn : public Dali::AddOn::AddOnBinder
36 using TextureManager = Dali::Toolkit::Internal::TextureManager;
38 RenderingAddOn() : Dali::AddOn::AddOnBinder( "oo-rendering", 0u )
41 // Bind AddOn functions
44 Dali::Geometry(TextureManager::TextureId, uint32_t&, uint32_t& ) );
48 Dali::Geometry( TextureManager::TextureId, const Dali::Devel::PixelBuffer& pixelBuffer ) );
56 Dali::Geometry( const void*, const Uint16Pair&, uint32_t*) );
60 void( Renderer&, const void* ) );
64 void*( const Devel::PixelBuffer&, void*) );
71 * Single instance of the addon
74 static RenderingAddOn& Get()
76 static RenderingAddOn* addon = nullptr;
79 addon = new RenderingAddOn();
93 #endif //DALI_CMAKE_RENDERING_ADDON_H