Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for SDL_SysWMinfo #608

Open
Pablo96 opened this issue Nov 9, 2023 · 1 comment
Open

Support for SDL_SysWMinfo #608

Pablo96 opened this issue Nov 9, 2023 · 1 comment

Comments

@Pablo96
Copy link

Pablo96 commented Nov 9, 2023

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

@larpon
Copy link
Contributor

larpon commented Nov 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants