| |
| /* |
| * Copyright 2017 Google Inc. |
| * |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. |
| */ |
| |
| #ifndef WindowContextFactory_ios_DEFINED |
| #define WindowContextFactory_ios_DEFINED |
| |
| #include "SDL.h" |
| |
| namespace sk_app { |
| |
| class WindowContext; |
| struct DisplayParams; |
| |
| namespace window_context_factory { |
| |
| struct IOSWindowInfo { |
| SDL_Window* fWindow; |
| SDL_GLContext fGLContext; |
| }; |
| |
| inline WindowContext* NewVulkanForIOS(const IOSWindowInfo&, const DisplayParams&) { |
| // No Vulkan support on iOS. |
| return nullptr; |
| } |
| |
| WindowContext* NewGLForIOS(const IOSWindowInfo&, const DisplayParams&); |
| |
| WindowContext* NewRasterForIOS(const IOSWindowInfo&, const DisplayParams&); |
| |
| } // namespace window_context_factory |
| |
| } // namespace sk_app |
| |
| #endif |