SDL2: Difference between Window Focus type events

preview_player
Показать описание
difference between
SDL_WINDOWEVENT_LEAVE
SDL_WINDOWEVENT_ENTER
and
SDL_WINDOWEVENT_FOCUS_LOST
SDL_WINDOWEVENT_FOCUS_GAINED
Рекомендации по теме
Комментарии
Автор

Nicely explained. I am curious, have you ever run your program and had the window immediately pop to the background, like, behind another window as soon as you run the program for the first time? I have had that once in a while. It's fairly random, but I am curious if anyone else has noticed this and perhaps fixed it? I set up a REALLY simple program that just creates the window and loads an image for it. That's it. But it happens with this once in a while.

NeilRoy
Автор

Do you share GL context between all windows or they own their own?

syntaxed
welcome to shbcf.ru