11 #include "rendering/gles/RenderSystemGLES.h" 12 #include "threads/CriticalSection.h" 13 #include "windowing/WinSystem.h" 18 #include <CoreVideo/CVOpenGLESTextureCache.h> 30 static void Register();
31 static std::unique_ptr<CWinSystemBase> CreateWinSystem();
33 int GetDisplayIndexFromSettings();
36 bool InitWindowSystem()
override;
37 bool DestroyWindowSystem()
override;
38 bool CreateNewWindow(
const std::string& name,
bool fullScreen,
RESOLUTION_INFO& res)
override;
39 bool DestroyWindow()
override;
40 bool ResizeWindow(
int newWidth,
int newHeight,
int newLeft,
int newTop)
override;
41 bool SetFullScreen(
bool fullScreen,
RESOLUTION_INFO& res,
bool blankOtherDisplays)
override;
42 void UpdateResolutions()
override;
43 bool CanDoWindowed()
override {
return false; }
45 void ShowOSMouse(
bool show)
override {}
46 bool HasCursor()
override;
48 void NotifyAppActiveChange(
bool bActivated)
override;
50 bool Minimize()
override;
51 bool Restore()
override;
53 bool Show(
bool raise =
true)
override;
55 bool IsExtSupported(
const char* extension)
const override;
57 bool BeginRender()
override;
58 bool EndRender()
override;
65 std::vector<std::string> GetConnectedOutputs()
override;
68 void DeinitDisplayLink(
void);
69 void OnAppFocusChange(
bool focus);
70 bool IsBackgrounded()
const {
return m_bIsBackgrounded; }
71 CVEAGLContext GetEAGLContextObj();
72 void MoveToTouchscreen();
75 bool MessagePump()
override;
78 void PresentRenderImpl(
bool rendered)
override;
79 void SetVSyncImpl(
bool enable)
override {}
82 void *m_WorkingContext;
83 bool m_bWasFullScreenBeforeMinimize;
85 CCriticalSection m_resourceSection;
86 std::vector<IDispResource*> m_resources;
87 bool m_bIsBackgrounded;
90 bool GetScreenResolution(
int* w,
int* h,
double* fps,
int screenIdx);
91 void FillInVideoModes(
int screenIdx);
92 bool SwitchToVideoMode(
int width,
int height,
double refreshrate);
94 int m_internalTouchscreenResolutionWidth = -1;
95 int m_internalTouchscreenResolutionHeight = -1;
Definition: VideoSyncIos.h:16
Definition: WinSystem.h:49
Definition: RenderSystemGLES.h:73
Definition: RenderSystem.h:27
Definition: DispResource.h:14
Provide info of a resolution.
Definition: Resolution.h:66
Definition: VideoReferenceClock.h:19
Definition: WinSystemIOS.mm:64
Definition: WinSystemIOS.h:24