mirror of
https://github.com/SFML/SFML.git
synced 2024-11-29 06:41:05 +08:00
sync with sfml: + Window.windowHandle()
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1536 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
0444781a4b
commit
7500786896
@ -349,6 +349,17 @@ public:
|
|||||||
{
|
{
|
||||||
sfWindow_SetJoystickThreshold(m_ptr, threshold);
|
sfWindow_SetJoystickThreshold(m_ptr, threshold);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieve the Os-specific handle of a window
|
||||||
|
*
|
||||||
|
* Params:
|
||||||
|
* renderWindow = Renderwindow object
|
||||||
|
*/
|
||||||
|
WindowHandle windowHandle()
|
||||||
|
{
|
||||||
|
return sfWindow_GetSystemHandle(m_ptr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -433,10 +444,11 @@ private:
|
|||||||
|
|
||||||
// DSFML2
|
// DSFML2
|
||||||
bool function(SFMLClass, void*) sfWindow_WaitEvent;
|
bool function(SFMLClass, void*) sfWindow_WaitEvent;
|
||||||
|
WindowHandle function(SFMLClass) sfWindow_GetSystemHandle;
|
||||||
}
|
}
|
||||||
|
|
||||||
mixin(loadFromSharedLib2("csfml-window", "sfWindow",
|
mixin(loadFromSharedLib2("csfml-window", "sfWindow",
|
||||||
"Create", "CreateFromHandle", "Destroy", "Close", "IsOpened", "GetWidth", "GetHeight", "GetSettings", "GetEvent", "UseVerticalSync",
|
"Create", "CreateFromHandle", "Destroy", "Close", "IsOpened", "GetWidth", "GetHeight", "GetSettings", "GetEvent", "UseVerticalSync",
|
||||||
"ShowMouseCursor", "SetCursorPosition", "SetPosition", "SetSize", "Show", "EnableKeyRepeat", "SetIcon", "SetActive", "Display",
|
"ShowMouseCursor", "SetCursorPosition", "SetPosition", "SetSize", "Show", "EnableKeyRepeat", "SetIcon", "SetActive", "Display",
|
||||||
"GetInput", "SetFramerateLimit", "GetFrameTime", "SetJoystickThreshold", "WaitEvent"));
|
"GetInput", "SetFramerateLimit", "GetFrameTime", "SetJoystickThreshold", "WaitEvent", "GetSystemHandle"));
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user