2016-07-26 19:02:50 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright 2016 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef WindowContextFactory_mac_DEFINED
|
|
|
|
#define WindowContextFactory_mac_DEFINED
|
|
|
|
|
2016-08-04 19:30:31 +00:00
|
|
|
#include "SDL.h"
|
|
|
|
|
2016-07-26 19:02:50 +00:00
|
|
|
namespace sk_app {
|
|
|
|
|
|
|
|
class WindowContext;
|
|
|
|
struct DisplayParams;
|
|
|
|
|
|
|
|
namespace window_context_factory {
|
|
|
|
|
|
|
|
struct MacWindowInfo {
|
2016-08-04 19:30:31 +00:00
|
|
|
SDL_Window* fWindow;
|
2016-07-26 19:02:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
inline WindowContext* NewVulkanForMac(const MacWindowInfo&, const DisplayParams&) {
|
|
|
|
// No Vulkan support on Mac.
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
WindowContext* NewGLForMac(const MacWindowInfo&, const DisplayParams&);
|
|
|
|
|
2016-08-09 17:53:11 +00:00
|
|
|
WindowContext* NewRasterForMac(const MacWindowInfo&, const DisplayParams&);
|
|
|
|
|
2016-07-26 19:02:50 +00:00
|
|
|
} // namespace window_context_factory
|
|
|
|
|
|
|
|
} // namespace sk_app
|
|
|
|
|
|
|
|
#endif
|