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

Method display

src/SFML/Graphics/RenderTexture.cpp:167–189  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

165
166////////////////////////////////////////////////////////////
167void RenderTexture::display()
168{
169 if (!m_impl)
170 return;
171
172 if (priv::RenderTextureImplFBO::isAvailable())
173 {
174 // Perform a RenderTarget-only activation if we are using FBOs
175 if (!RenderTarget::setActive())
176 return;
177 }
178 else
179 {
180 // Perform a full activation if we are not using FBOs
181 if (!setActive())
182 return;
183 }
184
185 // Update the target texture
186 m_impl->updateTexture(m_texture.m_texture);
187 m_texture.m_pixelsFlipped = true;
188 m_texture.invalidateMipmap();
189}
190
191
192////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 3

invalidateMipmapMethod · 0.80
isAvailableFunction · 0.50
updateTextureMethod · 0.45

Tested by

no test coverage detected