Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - raster149

Pages: [1]
1
Window / Re: Keeping Vertex Array Objects when closing a window
« on: January 14, 2014, 01:19:06 pm »
I guess you meant this thread: http://en.sfml-dev.org/forums/index.php?topic=10930.msg75410#msg75410

http://en.sfml-dev.org/forums/index.php?topic=5977.msg39298#msg39298


There is also a implementation for windows.
Edit: This tweek is only a borderless resized (to screen resolution) window.

AlexAUT

I need a way to do it on all platforms, that's the main reason I'm using SFML for window creation in the first place. Resizing a borderless window would run slower since desktop remains in video memory.
I've decided I will not use VAOs at all, at least until this is fixed.

2
Window / Keeping Vertex Array Objects when closing a window
« on: January 13, 2014, 08:33:45 pm »
I was surprised to find that the only way to switch between fullscreen and windowed mode is by closing the window and reopening it in the new mode,
and since whenever the window is closed its OpenGL context is destroyed, I lose all my FBOs and VAOs.
For FBOs it's not a big deal since I have to remake them for the new window size anyway, but since I create VAO for every model whenever I load it, I would have to initialize all my meshes again, and that seems like a stupid thing to do just for switching the window mode.

Is there any other way to switch to fullscreen and back?
Is there a way to keep my VAOs when the window closes?

I'm talking about the sf::Window, not the sf::RenderWindow!

Pages: [1]