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.


Topics - raster149

Pages: [1]
1
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]