summaryrefslogtreecommitdiff
path: root/platform/windows/gl_manager_windows.cpp
diff options
context:
space:
mode:
authorClay John <claynjohn@gmail.com>2022-11-08 22:57:23 -0800
committerGitHub <noreply@github.com>2022-11-08 22:57:23 -0800
commit6bb2ea281eb657ec425670ed09e8192f2338fa0e (patch)
treed47525574fbccaaa60e50e84f29603945eef607d /platform/windows/gl_manager_windows.cpp
parent6d9546f16c505186196da677154de5f216b7eb9b (diff)
parent23603e409c04fd0238a45552ad7b07a175b528c6 (diff)
Merge pull request #67775 from dsnopek/opengl-multiview-openxr
Add support for OpenGL to OpenXR
Diffstat (limited to 'platform/windows/gl_manager_windows.cpp')
-rw-r--r--platform/windows/gl_manager_windows.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/windows/gl_manager_windows.cpp b/platform/windows/gl_manager_windows.cpp
index 7689751f1b..900bca8258 100644
--- a/platform/windows/gl_manager_windows.cpp
+++ b/platform/windows/gl_manager_windows.cpp
@@ -339,6 +339,16 @@ bool GLManager_Windows::is_using_vsync() const {
return use_vsync;
}
+HDC GLManager_Windows::get_hdc(DisplayServer::WindowID p_window_id) {
+ return get_window(p_window_id).hDC;
+}
+
+HGLRC GLManager_Windows::get_hglrc(DisplayServer::WindowID p_window_id) {
+ const GLWindow &win = get_window(p_window_id);
+ const GLDisplay &disp = get_display(win.gldisplay_id);
+ return disp.hRC;
+}
+
GLManager_Windows::GLManager_Windows(ContextType p_context_type) {
context_type = p_context_type;