Commit Graph

392 Commits

Author SHA1 Message Date
Laurent Gomila
d938899f5c Window::SetCursorPosition now triggers MouseMoved events 2011-05-30 18:56:49 +02:00
Laurent Gomila
94ab420dd3 Implemented the sf::Packet to bool conversion using the safe-bool idiom 2011-05-25 20:45:16 +02:00
Laurent Gomila
43d4d0bb28 Fixed last commit 2011-05-25 07:38:18 +02:00
Laurent Gomila
1526d09701 Changed Packet::operator bool() to Packet::operator void*(), to avoid inappropriate implicit conversions 2011-05-24 22:10:13 +02:00
Laurent Gomila
e4c6c30e0b Times in SFML are now Uint32 milliseconds instead of float seconds
Added the sf::Uint64 and sf::Int64 types
2011-05-19 08:19:42 +02:00
Marco Antognini
c1ce16f4d6 Improved SetCursorPosition on Mac (fixes issue #46) 2011-05-18 21:49:45 +02:00
Laurent Gomila
7498b5bc27 Added initialization of the shared context (fixes issue #43) 2011-05-13 20:48:50 +02:00
Laurent Gomila
e952f945a0 Updates MinGW external libraries to match their headers (fixes issue #42) 2011-05-13 19:21:44 +02:00
Laurent Gomila
a4f6e915a0 Removed the sf::Randomizer class from the system module 2011-05-10 08:16:22 +02:00
Marco Antognini
816a36ea0d Add OS X implementation of joysticks 2011-05-08 12:44:02 +02:00
Laurent Gomila
49c0208b2e The version returned by Window::GetSettings() is now the actual version of the context 2011-05-04 22:35:15 +02:00
Marco Antognini
6eac4256f3 Fixed issue 9 (update opengl version of a context on OS X) 2011-04-27 22:44:55 +02:00
Marco Antognini
becf51572f updated OS X port to support sf::Event::KeyEvent::System. 2011-04-27 13:53:59 +02:00
Laurent Gomila
ede01df778 Added the sf::Event::KeyEvent::System member (implements feature #8) 2011-04-26 21:58:03 +02:00
Laurent Gomila
ade8cb8771 Restored smoothing on fonts 2011-04-26 18:56:56 +02:00
Marco Antognini
71469f1815 Update SFContext according to the new contexts system 2011-04-16 20:13:03 +02:00
Marco Antognini
9e2e349043 Minor comment update 2011-04-16 20:11:51 +02:00
Marco Antognini
690d4a3eff Improved process setup code design 2011-04-16 20:10:47 +02:00
Laurent Gomila
ad79328a70 Fixed recursive mutex lock in GlContext::Cleanup() 2011-04-15 18:14:35 +02:00
Laurent Gomila
fd0d18f12e Fixed the crash that happened when destroying then creating again a render target 2011-04-13 23:16:20 +02:00
Laurent Gomila
df6874273a Renamed Window::GetEvent to PollEvent 2011-04-11 18:20:21 +02:00
Laurent Gomila
cb1f938582 sf::Image is now *not* smooth by default (fixes issue #19) 2011-04-06 08:22:56 +02:00
Laurent Gomila
e7958987e9 Fixed potential endless recursion when creating the first GL context 2011-04-06 08:18:59 +02:00
Laurent Gomila
ba8a36990f Fixed a minor issue in the GlxContext constructor that was added recently 2011-04-06 07:35:06 +02:00
Laurent Gomila
10ebd94ee7 Merge branch 'master' of github.com:LaurentGomila/SFML 2011-04-04 08:22:27 +02:00
Laurent Gomila
92f70b32e9 Replaced the P-Buffer implementation of RenderImage with a generic "in-memory context" one 2011-04-04 08:20:03 +02:00
Marco Antognini
816cc6f637 Fix compilation issues with 10.5 2011-03-31 19:09:10 +02:00
Laurent Gomila
da9844b6c4 Fixed 64-bits warning in WindowImplWin32 2011-03-28 23:25:10 +02:00
Marco Antognini
9c07503350 Add support for external window handling (NSView + NSWindow) (bis) 2011-03-28 14:53:28 +02:00
Marco Antognini
284bd09709 Add support for external window handling (NSView + NSWindow)
Minor improvement of SFContext.
2011-03-28 14:39:14 +02:00
Laurent Gomila
4e3feba25b Added external dependencies and modified build files to enable 64 bits builds on Windows (VC++ only for now) 2011-03-26 23:57:10 +01:00
laurentgom
149a724dea Fixed typo in error message
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1815 4e206d99-4929-0410-ac5d-dfc041789085
2011-03-24 14:13:24 +00:00
laurentgom
58546a52df Removed warnings in the Linux implementation of RenderImageImplPBuffer
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1811 4e206d99-4929-0410-ac5d-dfc041789085
2011-03-21 09:12:09 +00:00
laurentgom
ccc2a050ed Fixed compile error in GlContext.cpp
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1810 4e206d99-4929-0410-ac5d-dfc041789085
2011-03-21 08:45:46 +00:00
laurentgom
a94ed51702 ATI fix!
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1809 4e206d99-4929-0410-ac5d-dfc041789085
2011-03-21 07:08:26 +00:00
laurentgom
f3d212f737 Merged some functions in sf::String
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1807 4e206d99-4929-0410-ac5d-dfc041789085
2011-03-19 19:49:16 +00:00
mantognini
73370dc178 Forbid window creating and event fetching from worker thread as it's an OS X limitation.
Fix context not activated when created (now shader and renderimage works without having to creat a window or a context explicitly).



git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1800 4e206d99-4929-0410-ac5d-dfc041789085
2011-02-19 14:22:39 +00:00
mantognini
8675cb364c Fixed Mouse In/Out event and the internal state of SFOpenGLView when the window is resized
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1796 4e206d99-4929-0410-ac5d-dfc041789085
2011-02-11 15:41:55 +00:00
mantognini
f85a1794bc Improved TextEntered event.
Improved KeyPressed/Released event.
Add support for 'modifier' keys (System, Alt, Control, Shift).



git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1795 4e206d99-4929-0410-ac5d-dfc041789085
2011-02-11 00:17:19 +00:00
LaurentGom
58632672cb sf::Utf functions now use the global locale by default instead of the system's one
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1794 4e206d99-4929-0410-ac5d-dfc041789085
2011-02-09 16:44:43 +00:00
mantognini
b26215ef96 OSX, Apply a better fix to compute screen height
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1793 4e206d99-4929-0410-ac5d-dfc041789085
2011-02-09 13:10:43 +00:00
mantognini
f664148e27 Fix GetFullscreenModes : no more returns only desktop mode.
Fix fullscreen window by setting up a desktop-wide window and resizing the context's backbuffer.

Fix mouse coordinate for fullscreen window.

Fix window sending 5 event when resized.

Better fix for TextEntered event – no more relies on documentation but on current implementation of the system.

Update some obj-classes structures. (Mostly improved the code structure.)

Update © date and some comments.



git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1792 4e206d99-4929-0410-ac5d-dfc041789085
2011-02-09 11:50:25 +00:00
LaurentGom
8affa29f54 Changed the returned OpenGL context version from 2.9 to 2.0, if creating a context >= 3.0 failed
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1791 4e206d99-4929-0410-ac5d-dfc041789085
2011-02-08 17:23:05 +00:00
mantognini
e9a201af21 OSX, fixed arrow keys creating TextEntred event.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1789 4e206d99-4929-0410-ac5d-dfc041789085
2011-02-05 14:15:31 +00:00
LaurentGom
c48792e933 Made the context creation code more flexible, to allow 4.x contexts
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1788 4e206d99-4929-0410-ac5d-dfc041789085
2011-02-04 22:22:54 +00:00
mantognini
cf779be180 OSX, fix random crash with sf::Window::Create
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1777 4e206d99-4929-0410-ac5d-dfc041789085
2011-01-23 23:42:48 +00:00
mantognini
206aebd46a OSX, forget to remove NSLog..
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1775 4e206d99-4929-0410-ac5d-dfc041789085
2011-01-22 09:13:42 +00:00
mantognini
8d9de8396b OSX, fixed sf::Window::SetPosition for 10.4 and 10.5 (theoretically)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1774 4e206d99-4929-0410-ac5d-dfc041789085
2011-01-22 08:57:32 +00:00
mantognini
0cf57db9c2 OSX, fixed sf::Window::SetPosition
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1773 4e206d99-4929-0410-ac5d-dfc041789085
2011-01-21 22:41:22 +00:00
mantognini
0a7b98dd0b OSX, fixed tabulation
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1772 4e206d99-4929-0410-ac5d-dfc041789085
2011-01-20 21:52:27 +00:00