swordlegend / recastnavigation

Automatically exported from code.google.com/p/recastnavigation
zlib License
0 stars 0 forks source link

Resizable Recast Demo Window #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you add the following code to the "Recast Demo" main.cpp file then 
you'll be able to resize the main window and maximise it:

// Initialising the video mode
SDL_Surface* screen = SDL_SetVideoMode(width, height, 0, 
SDL_OPENGL|SDL_RESIZABLE);

// When responding to SDL_PollEvent
case SDL_VIDEORESIZE:
    width = event.resize.w;
    height = event.resize.h;
    break;

Original issue reported on code.google.com by armstron...@gmail.com on 23 Feb 2010 at 11:21

GoogleCodeExporter commented 9 years ago
Last time I checked this was not possible. You need to call SDL_SetVideoMode 
when
SDL_VIDEORESIZE happens which in turn kills all your textures.

Original comment by memono...@gmail.com on 23 Feb 2010 at 11:49

GoogleCodeExporter commented 9 years ago
It works for me...might be worth trying again? :)

Original comment by armstron...@gmail.com on 23 Feb 2010 at 12:41

GoogleCodeExporter commented 9 years ago
Googling around a bit shows that it may work on some configurations/platforms. 
SLD
1.3 is supposed to fix this, if there ever is going to be a proper release of 
it.
Until then, this will be WontFix.

Original comment by memono...@gmail.com on 2 Mar 2010 at 10:07