Improved the performances of Window::getSize() (the size is now cached)

This commit is contained in:
Laurent Gomila 2013-06-12 20:27:18 +02:00
parent 7c9f9cc41c
commit da96ec5811
2 changed files with 18 additions and 4 deletions

View file

@ -473,6 +473,7 @@ private:
priv::GlContext* m_context; ///< Platform-specific implementation of the OpenGL context
Clock m_clock; ///< Clock for measuring the elapsed time between frames
Time m_frameTimeLimit; ///< Current framerate limit
Vector2u m_size; ///< Current size of the window
};
} // namespace sf