-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Implement SDL/dx11 sample #2630
Conversation
Add support for viewport when using SDL with dx11
Thank you Vincent. Since you changed _dx11 to use Linking to #2612. |
@@ -564,8 +564,8 @@ static void ImGui_ImplDX11_CreateWindow(ImGuiViewport* viewport) | |||
ImGuiViewportDataDx11* data = IM_NEW(ImGuiViewportDataDx11)(); | |||
viewport->RendererUserData = data; | |||
|
|||
HWND hwnd = (HWND)viewport->PlatformHandle; | |||
IM_ASSERT(hwnd != 0); | |||
assert(viewport->PlatformHandleRaw); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IM_ASSERT
EndProject | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_sdl_directx11.vcxproj", "example_sdl_directx11\example_sdl_directx11.vcxproj.vcxproj", "{9E1987E3-1F19-45CA-B9C9-D31E791836D8}" | ||
EndProject | ||
Global |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't add this to the default SLN as there's no reliable way to guarantee it'll compile under Windows without SDL installed somewhere in a folder accessible by the compiler.
Sure, I'll split it up later today. |
Superseded by #2630 |
Implement SDL/dx11 sample
Add support for viewport when using SDL with dx11
Addressing comments mentioned in #2482