summaryrefslogtreecommitdiffstats
path: root/tools/graphics-app-framework/windows/win-window.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-01-14 15:48:54 -0800
committerGitHub <noreply@github.com>2021-01-14 15:48:54 -0800
commitf834f25794cfb746079e92d58c7410b767c57208 (patch)
tree583a86d4cb2e446c2c06f9d786996d10647baf84 /tools/graphics-app-framework/windows/win-window.cpp
parentac76997690a39605b2b8fbd63de9cbbbc2af2a73 (diff)
COM-ify all slang-gfx interfaces. (#1656)
* COM-ify all slang-gfx interfaces.
Diffstat (limited to 'tools/graphics-app-framework/windows/win-window.cpp')
-rw-r--r--tools/graphics-app-framework/windows/win-window.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/graphics-app-framework/windows/win-window.cpp b/tools/graphics-app-framework/windows/win-window.cpp
index 45315a27a..7433603cb 100644
--- a/tools/graphics-app-framework/windows/win-window.cpp
+++ b/tools/graphics-app-framework/windows/win-window.cpp
@@ -293,6 +293,12 @@ Window* createWindow(WindowDesc const& desc)
return window;
}
+void destroyWindow(Window* window)
+{
+ DestroyWindow(window->handle);
+ delete window;
+}
+
void showWindow(Window* window)
{
ShowWindow(window->handle, SW_SHOW);