OLD | NEW |
(Empty) | |
| 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_unix_DEFINED |
| 10 #define WindowContextFactory_unix_DEFINED |
| 11 |
| 12 #include <X11/Xlib.h> |
| 13 #include <GL/glx.h> |
| 14 typedef Window XWindow; |
| 15 |
| 16 namespace sk_app { |
| 17 |
| 18 class WindowContext; |
| 19 struct DisplayParams; |
| 20 |
| 21 namespace window_context_factory { |
| 22 |
| 23 struct XlibWindowInfo { |
| 24 Display* fDisplay; |
| 25 XWindow fWindow; |
| 26 XVisualInfo* fVisualInfo; |
| 27 }; |
| 28 |
| 29 WindowContext* NewVulkanForXlib(const XlibWindowInfo&, const DisplayParams&); |
| 30 |
| 31 WindowContext* NewGLForXlib(const XlibWindowInfo&, const DisplayParams&); |
| 32 |
| 33 } // namespace window_context_factory |
| 34 |
| 35 } // namespace sk_app |
| 36 |
| 37 #endif |
OLD | NEW |