openDarkEngine icon indicating copy to clipboard operation
openDarkEngine copied to clipboard

Window size change detection

Open volca02 opened this issue 10 years ago • 1 comments

SDL has SDL_WindowEvent in SDL_Event in case the window changed size/position...

We should notify render service about the fact the window changed size, render service would then notify ogre.

volca02 avatar Apr 29 '14 06:04 volca02

if (event->type == SDL_WINDOWEVENT) {
    if (event->window.event == SDL_WINDOWEVENT_RESIZED) {
        .... event->window.data1 x data2
    }
}

volca02 avatar Apr 29 '14 06:04 volca02