mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 13:06:13 +01:00
Added overloads of sfMouse_getPosition and sfMouse_setPosition for sfRenderWindow
This commit is contained in:
1 parent
a74e57bcd4
commit
65c8bfc655
2 files changed
+49
No files matched your search
@@ -420,5 +420,30 @@ CSFML_GRAPHICS_API void sfRenderWindow_resetGLStates(sfRenderWindow* renderWindo
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfImage* sfRenderWindow_capture(const sfRenderWindow* renderWindow);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Get the current position of the mouse relatively to a render-window
|
||||
///
|
||||
/// This function returns the current position of the mouse
|
||||
/// cursor relative to the given render-window, or desktop if NULL is passed.
|
||||
///
|
||||
/// \param relativeTo Reference window
|
||||
///
|
||||
/// \return Position of the mouse cursor, relative to the given render-window
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfVector2i sfMouse_getPositionRenderWindow(const sfRenderWindow* relativeTo);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Set the current position of the mouse relatively to a render-window
|
||||
///
|
||||
/// This function sets the current position of the mouse
|
||||
/// cursor relative to the given render-window, or desktop if NULL is passed.
|
||||
///
|
||||
/// \param position New position of the mouse
|
||||
/// \param relativeTo Reference window
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API void sfMouse_setPositionRenderWindow(sfVector2i position, const sfRenderWindow* relativeTo);
|
||||
|
||||
|
||||
#endif // SFML_RENDERWINDOW_H
|
||||
Reference in new issue
Block a user