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")))
41 using GraphicsImpl = Vulkan::Graphics;
50 class EXPORT_API Graphics final
60 * @param surfaceFactory
63 Dali::Graphics::FBID CreateSurface( std::unique_ptr<Dali::Integration::Graphics::SurfaceFactory> surfaceFactory );
67 * When creating Graphics at least one surfaceFactory must be supplied ( no headless mode )
68 * @param surfaceFactory
71 Dali::Graphics::FBID Create( std::unique_ptr<Dali::Integration::Graphics::SurfaceFactory> surfaceFactory );
76 void PreRender( Dali::Graphics::FBID framebufferId = 0u );
81 void PostRender( Dali::Graphics::FBID framebufferId = 0u );
84 * Returns controller object
87 Dali::Graphics::API::Controller& GetController();
89 // this function is used only by the standalone test
91 T& GetImplementation() const
93 return static_cast<T&>(*mGraphicsImpl.get());
98 std::unique_ptr<Dali::Graphics::GraphicsImpl> mGraphicsImpl;
104 * fixme: dummy function to make sure the static library won't be discarded entirely during linking
106 EXPORT_API void IncludeThisLibrary();
108 } // Namespace Graphics
109 } // Namespace Integration
112 #endif // DALI_INTEGRATION_GRAPHICS_H