I'm trying to use SDL2 in a panel (VS2015/C++) and cannot find solid examples of how to connect the two. Anyone know how this is done?
I've tried some code found in various places, but no luck yet. The code below was my latest attempt. I'm using latest version of SDL2.
SDL_Window* sdlWnd = SDL_CreateWindowFrom((void*)mapPanel->Handle); SDL_SetWindowTitle(sdlWnd, "SDL Window - Set by SDL"); SDL_Surface* s = SDL_GetWindowSurface(sdlWnd); SDL_FillRect(s, &s->clip_rect, 0xffff00ff); SDL_UpdateWindowSurface(sdlWnd); SDL_ShowWindow(sdlWnd);