///////////////////////////////////////////////////////
| 194 | |
| 195 | //////////////////////////////////////////////////////////// |
| 196 | void Window::display() |
| 197 | { |
| 198 | // Display the backbuffer on screen |
| 199 | if (setActive()) |
| 200 | m_context->display(); |
| 201 | |
| 202 | // Limit the framerate if needed |
| 203 | if (m_frameTimeLimit != Time::Zero) |
| 204 | { |
| 205 | sleep(m_frameTimeLimit - m_clock.getElapsedTime()); |
| 206 | m_clock.restart(); |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | |
| 211 | //////////////////////////////////////////////////////////// |