2017-09-01 15:01:51 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* 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 {
|
2018-02-15 20:25:11 +00:00
|
|
|
SDL_Window* fWindow;
|
|
|
|
SDL_GLContext fGLContext;
|
2017-09-01 15:01:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|