Game Development Reference
In-Depth Information
OpenGL in multiple windows
SFML allows us to use multiple windows with each application. It is quite uncommon for
games to have more than one window, but not for media applications. When we want to
render an object in a specific window, we call RenderWindow::draw() . However,
when we want to use OpenGL, we need to specify which window is affected by its function
calls. This is simply done by Window::setActive() . When we want to start rendering
on a window, we just call setActive() and start using OpenGL.
With this, our OpenGL session is over.
Search WWH ::




Custom Search