How to obtain window handle in SDL 2.0.3
Posted
by
Diorthotis
on Game Development
See other posts from Game Development
or by Diorthotis
Published on 2014-08-18T02:06:24Z
Indexed on
2014/08/18
16:48 UTC
Read the original article
Hit count: 245
sdl2
I need to obtain the handle of the window for SDL 2.0.3. I got the suggestion to use info.window
after initializing SDL and filling the info variable with data by calling SDL_GetWindowWMInfo();
included in the header file SDL_syswm.h
. My compiler (visual studio 2008 professional edition) gives the following error:
226) : error C2039: 'window' : is not a member of 'SDL_SysWMinfo'
1> include\sdl_syswm.h(173) : see declaration of 'SDL_SysWMinfo'
Any help appreciated. Thanks.
Nevermind, I needed to use "info.info.win.window". That seems a bit redundant, but whateves.
© Game Development or respective owner