On Sat, 04 Jul 2009 14:24:29 -0700, Žiga Lenarčič <ziga.lenar...@gmail.com> wrote:
> > Thanks for that tip - it works correctly when using a 'sdl' window, > but when I use opengl (when I create the window with sdl:sdl-opengl > flag), resize-window resizes window correctly, but the origin of the > window moves (as if some kind of window centering was present) and > also in the cocoahelper a new entry is created under the window menu > (I noticed that performance drops when there are a lot of windows in > cocoahelper application). > > Perhaps this is Mac OS X specific (because of cocoahelper layer)? Do > I need to use lower level functions? > Are proper resizable opengl-sdl windows possible? Unfortunately SDL hoses the OpenGL context in win32 when the window is resized. You will need to reinitialize your OpenGL pipeline again, load textures etc. See "User Note 2:" on the SDL wiki here; http://sdl.beuc.net/sdl.wiki/SDL_SetVideoMode > > Also does the sdl:sdl-doublebuf flag when creating a window work the > same way with an opengl window as with a normal sdl window? No, that is to be used only for SDL surfaces. To enable OpenGL double buffering, use; (sdl:set-gl-attribute :SDL-GL-DOUBLEBUFFER 1) Set your OpenGL attributes prior to calling WINDOW. - Luke _______________________________________________ application-builder mailing list application-builder@lispniks.com http://www.lispniks.com/mailman/listinfo/application-builder