mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +08:00
Updated sfWindowHandle in CSFML (sync with sf::WindowHandle)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1581 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
d327320b59
commit
bfcc54db3d
@ -37,17 +37,18 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#if defined(CSFML_SYSTEM_WINDOWS)
|
#if defined(CSFML_SYSTEM_WINDOWS)
|
||||||
|
|
||||||
// Windows defines a void* handle (HWND)
|
// Window handle is HWND (HWND__*) on Windows
|
||||||
typedef void* sfWindowHandle;
|
struct HWND__;
|
||||||
|
typedef HWND__* sfWindowHandle;
|
||||||
|
|
||||||
#elif defined(CSFML_SYSTEM_LINUX) || defined(CSFML_SYSTEM_FREEBSD)
|
#elif defined(CSFML_SYSTEM_LINUX) || defined(CSFML_SYSTEM_FREEBSD)
|
||||||
|
|
||||||
// Unix - X11 defines an unsigned integer handle (Window)
|
// Window handle is Window (unsigned long) on Unix - X11
|
||||||
typedef unsigned long sfWindowHandle;
|
typedef unsigned long sfWindowHandle;
|
||||||
|
|
||||||
#elif defined(CSFML_SYSTEM_MACOS)
|
#elif defined(CSFML_SYSTEM_MACOS)
|
||||||
|
|
||||||
// Mac OS X defines a void* handle (NSWindow)
|
// Window handle is NSWindow (void*) on Mac OS X - Cocoa
|
||||||
typedef void* sfWindowHandle;
|
typedef void* sfWindowHandle;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user