mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-21 14:11:08 +00:00
4a089ca1c8
realitix SDL2 allows to create widow and to get information through SDL_SysWMinfo. But it misses something, with Vulkan, you need the HWND and HINSTANCE of the window for Win32 system. Sadly, SDL2 provides only HWND but not HINSTANCE. In some context, it can be difficult to get the HINSTANCE, indeed, I'm using pySDL2 (Python) and I can only access properties that SDL2 gives me. I have to use a dirty trick like that to get the HINSTANCE: (https://raw.githubusercontent.com/bglgwyng/pyVulkan/master/examples/win32misc.py) |
||
---|---|---|
.. | ||
SDL_msctf.h | ||
SDL_vkeys.h | ||
SDL_windowsclipboard.c | ||
SDL_windowsclipboard.h | ||
SDL_windowsevents.c | ||
SDL_windowsevents.h | ||
SDL_windowsframebuffer.c | ||
SDL_windowsframebuffer.h | ||
SDL_windowskeyboard.c | ||
SDL_windowskeyboard.h | ||
SDL_windowsmessagebox.c | ||
SDL_windowsmessagebox.h | ||
SDL_windowsmodes.c | ||
SDL_windowsmodes.h | ||
SDL_windowsmouse.c | ||
SDL_windowsmouse.h | ||
SDL_windowsopengl.c | ||
SDL_windowsopengl.h | ||
SDL_windowsopengles.c | ||
SDL_windowsopengles.h | ||
SDL_windowsshape.c | ||
SDL_windowsshape.h | ||
SDL_windowsvideo.c | ||
SDL_windowsvideo.h | ||
SDL_windowswindow.c | ||
SDL_windowswindow.h | ||
wmmsg.h |