• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 /*
3  * Copyright 2016 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_mac_DEFINED
10 #define WindowContextFactory_mac_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 MacWindowInfo {
22     SDL_Window*   fWindow;
23     SDL_GLContext fGLContext;
24 };
25 
NewVulkanForMac(const MacWindowInfo &,const DisplayParams &)26 inline WindowContext* NewVulkanForMac(const MacWindowInfo&, const DisplayParams&) {
27     // No Vulkan support on Mac.
28     return nullptr;
29 }
30 
31 WindowContext* NewGLForMac(const MacWindowInfo&, const DisplayParams&);
32 
33 WindowContext* NewRasterForMac(const MacWindowInfo&, const DisplayParams&);
34 
35 }  // namespace window_context_factory
36 
37 }  // namespace sk_app
38 
39 #endif
40