sdl
sdl copied to clipboard
Support for SDL_SysWMinfo
V version: does not apply OS: does not apply
What did you do? I tried to translate the following code
static void* sdlNativeWindowHandle(SDL_Window* _window)
{
SDL_SysWMinfo wmi;
SDL_VERSION(&wmi.version);
if (!SDL_GetWindowWMInfo(_window, &wmi) )
{
return NULL;
}
...
}
What did you expect to see?
I expected the sdl.SysWMinfo
struct to exists in vsdl
What did you see instead?
The sdl.SysWMinfo
struct does not exists in vsdl
I am currently not aware of any way to expose the struct in V since the C struct is defined differently depending what C defines is sat when the SDL libs/V application is built... See the C code for the SDL_SysWMinfo
struct definiton