1 
2 /*
3  * Copyright 2017 Google Inc.
4  *
5  * Use of this source code is governed by a BSD-style license that can be
6  * found in the LICENSE file.
7  */
8 
9 #ifndef WindowContextFactory_ios_DEFINED
10 #define WindowContextFactory_ios_DEFINED
11 
12 #include "SDL.h"
13 
14 namespace sk_app {
15 
16 class WindowContext;
17 struct DisplayParams;
18 
19 namespace window_context_factory {
20 
21 struct IOSWindowInfo {
22     SDL_Window*   fWindow;
23     SDL_GLContext fGLContext;
24 };
25 
NewVulkanForIOS(const IOSWindowInfo &,const DisplayParams &)26 inline WindowContext* NewVulkanForIOS(const IOSWindowInfo&, const DisplayParams&) {
27     // No Vulkan support on iOS.
28     return nullptr;
29 }
30 
31 WindowContext* NewGLForIOS(const IOSWindowInfo&, const DisplayParams&);
32 
33 WindowContext* NewRasterForIOS(const IOSWindowInfo&, const DisplayParams&);
34 
35 }  // namespace window_context_factory
36 
37 }  // namespace sk_app
38 
39 #endif
40