MCPcopy Create free account
hub / github.com/SFML/SFML / setActive

Method setActive

src/SFML/Graphics/RenderWindow.cpp:85–103  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

83
84////////////////////////////////////////////////////////////
85bool RenderWindow::setActive(bool active)
86{
87 bool result = Window::setActive(active);
88
89 // Update RenderTarget tracking
90 if (result)
91 result = RenderTarget::setActive(active);
92
93 // If FBOs are available, make sure none are bound when we
94 // try to draw to the default framebuffer of the RenderWindow
95 if (active && result && priv::RenderTextureImplFBO::isAvailable())
96 {
97 glCheck(GLEXT_glBindFramebuffer(GLEXT_GL_FRAMEBUFFER, m_defaultFrameBuffer));
98
99 return true;
100 }
101
102 return result;
103}
104
105
106////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

isAvailableFunction · 0.50

Tested by

no test coverage detected