Improved the performances of Window::getSize() (the size is now cached)
This commit is contained in:
parent
7c9f9cc41c
commit
da96ec5811
2 changed files with 18 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue