You can make an SDL window out of a wxPanel in a wxFrame:
SDL_CreateWindowFrom((void*)panel->GetHandle())
Make sure you delete the window in the onClose method of your frame.
You may also want to create a render loop
Initializing SDL
Define your own main function:
wxIMPLEMENT_APP_NO_MAIN(MyApp);boolMyApp::OnInit(){frame=newMyFrame();frame->Show();returntrue;}#ifdef _WIN32intwmain(intargc,char*argv[]){std::ignore=_putenv("SDL_AUDIODRIVER=directsound");#elseintmain(intargc,char*argv[]){#endifif(SDL_Init(SDL_INIT_EVERYTHING)<0){std::cerr<<"Could not initialize SDL.\n";return1;}intrv=wxEntry(argc,argv);SDL_Quit();returnrv;}