1 #ifndef DALI_INTEGRATION_GRAPHICS_H
2 #define DALI_INTEGRATION_GRAPHICS_H
5 * Copyright (c) 2017 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.
24 #define EXPORT_API __attribute__ ((visibility ("default")))
32 using FBID = uint32_t;
38 using GraphicsImpl = Vulkan::Graphics;
47 class EXPORT_API Graphics final
57 * @param surfaceFactory
60 Dali::Graphics::FBID CreateSurface( std::unique_ptr<Dali::Integration::Graphics::SurfaceFactory> surfaceFactory );
64 * When creating Graphics at least one surfaceFactory must be supplied ( no headless mode )
65 * @param surfaceFactory
68 Dali::Graphics::FBID Create( std::unique_ptr<Dali::Integration::Graphics::SurfaceFactory> surfaceFactory );
73 void PreRender( Dali::Graphics::FBID framebufferId = 0u );
78 void PostRender( Dali::Graphics::FBID framebufferId = 0u );
80 // this function is used only by the standalone test
82 T& GetImplementation() const
84 return static_cast<T&>(*mGraphicsImpl.get());
89 std::unique_ptr<Dali::Graphics::GraphicsImpl> mGraphicsImpl;
95 * fixme: dummy function to make sure the static library won't be discarded entirely during linking
97 EXPORT_API void IncludeThisLibrary();
99 } // Namespace Graphics
100 } // Namespace Integration
103 #endif // DALI_INTEGRATION_GRAPHICS_H