sdl icon indicating copy to clipboard operation
sdl copied to clipboard

Support for SDL_SysWMinfo

Open Pablo96 opened this issue 1 year ago • 1 comments

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

Pablo96 avatar Nov 09 '23 17:11 Pablo96

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

larpon avatar Nov 11 '23 15:11 larpon