Commit Graph

824 Commits

Author SHA1 Message Date
Laurent Gomila
ef78b6d0f3 Organized projects into folders, for IDEs that support it (e.g. Visual Studio) 2013-02-25 19:17:46 +01:00
Laurent Gomila
b85bf692c0 Fixed: outline direction were depending on the order in which points were defined in a Shape 2013-02-23 15:55:47 +01:00
Laurent Gomila
a40ef79a18 Added source file groups in CMake files (for better organization of sources when opening SFML projects in IDEs) 2013-02-21 20:25:11 +01:00
Lukas Dürrenberger
4a642014d4 Added x64 binaries for MinGW and adapted the CMake file. 2013-02-19 11:30:12 +01:00
Shiz
b1dc62a554 Fixed tiny style issues. 2013-02-12 18:29:58 +01:00
Shiz
9ba19e34a2 Simplified UTF-8 encoding procedure for X11 window title.
- Instead of first converting to a wide string and converting that to
  UTF-8, now convert to UTF-8 directly using sf::Utf32::toUtf8.
- Modify OS X sf::String to NSString helper to work for big-endian
  architectures (like OS X 10.5 on PowerPC) as well.
2013-02-12 17:44:01 +01:00
Shiz
6bc077688e Added Unicode window title support.
- Changed SFML API to receive an sf::String as the window title instead
  of a std::string (in Window::Window and Window::setTitle).
- Changed RenderWindow and WindowImpl APIs accordingly.
- Changed WindowImplWin32 to use a Unicode window title only if the
  target OS supports it.
- Changed WindowImplCocoa to always use Unicode window titles and added
  a utility function to Window/OSX/cpp_objc_conversion.mm.
- Changed WindowImplX11 to set the Unicode window title as part of the
  _NET_WM_NAME specification, which sadly is not part of the official X
  standard, but the closest anything can get. Still set regular ASCII
  title as fallback.
2013-02-12 02:14:52 +01:00
Laurent Gomila
fa69228716 Fixed joysticks not detected when checked at application startup. 2013-02-02 10:08:43 +01:00
Laurent Gomila
7be3f3af82 Minor indentation correction 2013-01-29 22:39:58 +01:00
Laurent Gomila
e75045358e Removed unused #include 2013-01-25 21:33:01 +01:00
Marco Antognini
13eb867686 Merge branch 'joybutton-ordering-osx' of git://github.com/ryanfields/SFML into fix/joystick 2013-01-21 10:03:40 +01:00
Marco Antognini
54bc864484 Add freetype.framework and edit CMake accordingly. (Close #241)
Freetype version 2.4.11, build for OS X 10.5 and above as universal
binary (i386 + x86_64)
2013-01-19 16:20:01 +01:00
Marco Antognini
e11ed81f72 Fix compilation issue on 10.5 2013-01-19 10:55:52 +01:00
Marco Antognini
b0333dfc16 Fix get/set window position on OS X 2013-01-19 10:52:08 +01:00
Laurent Gomila
9fac5d74dc Fixed minor typecast warning in Shader.cpp 2013-01-16 22:52:21 +01:00
binary1248
20db4969c5 Added setting of the timer resolution in the Win32 implementation of Sleep and rewrote the Unix Sleep implementation to use nanosleep instead of pthread_cond_timedwait to prevent spurious wakeups from causing the function to return too early. 2013-01-11 06:40:44 +01:00
Laurent Gomila
91e1743516 Changed Texture::bind and Shader::bind to be static functions, that can accept a null argument 2013-01-08 22:24:43 +01:00
Laurent Gomila
38da3f4338 Fixed computation of the alpha channel in sf::BlendAdd 2013-01-03 20:34:51 +01:00
Laurent Gomila
2285e3d344 Fixed the repeated keys detection algorithm on Linux 2013-01-03 20:31:20 +01:00
Laurent Gomila
03b8a1c3a7 Disabled fix #271 for ogg cracks (the solution slows down the loading too much) 2012-12-17 20:16:54 +01:00
Laurent Gomila
59a68f0a51 Merge branch 'master' of github.com:LaurentGomila/SFML 2012-11-17 22:41:31 +01:00
Christian Forfang
f9b3e513d2 Don't create std::string on glCheckError unless necessary. 2012-11-17 20:46:48 +01:00
Laurent Gomila
6ce6014dd8 Renamed RenderTarget::convertCoords to mapPixelToCoords, and added its inverse mapCoordsToPixel 2012-11-10 10:30:01 +01:00
Laurent Gomila
044eb85872 Fixed Xlib potential errors 2012-11-01 22:23:00 +01:00
Laurent Gomila
c02e375399 Renamed Ftp::ListingDirectory::getFilenames() to getListing() 2012-10-26 17:09:43 +02:00
Laurent Gomila
49f37ee8b3 Fixed the sf::Font texture corruption bug for big character sizes 2012-10-26 16:49:46 +02:00
Laurent Gomila
109d914bcb Changed SetWindowText to SetWindowTextA in the Win32 implementation (fixes a compiler error when SFML was compiled in Unicode mode) 2012-10-23 10:04:01 +02:00
Laurent Gomila
121cfeb6a3 Removed Shader::unbind (was not used internally, less consistent with sf::Texture and could be confusing for users) 2012-10-20 23:38:39 +02:00
Laurent Gomila
4c04a0ce8f Fixed compile error with std::abs in Sprite.cpp 2012-10-06 18:30:58 +02:00
Ryan Fields
8e4091f9af Makes joystick button ordering predictable.
Fixes unpredictable or unintentional joystick button ordering by sorting
buttons according to their HID Usage property.  This allows SFML to
adhere to a manufacturer's (or driver implentation's) intended button
ordering.
2012-10-05 12:28:58 -04:00
Laurent Gomila
226be57589 Fixed compile error with Clang/C++11 2012-10-01 21:05:37 +02:00
Laurent Gomila
6e81dabeda Fixed cracks with ogg music files (fixes #271) 2012-09-27 22:21:29 +02:00
Laurent Gomila
79df4146f0 Removed useless sf:: 2012-09-27 08:01:54 +02:00
Laurent Gomila
1bb206a380 Fixed the local bounds of sf::Text not updated when assigned an empty string 2012-09-26 23:08:42 +02:00
Laurent Gomila
57f81d4051 Disabled an optimization in sf::Shape that could break rendering 2012-09-21 22:06:27 +02:00
Laurent Gomila
da64dbe89f "Fixed" warning and crash caused by XCreateIC on Linux 2012-09-21 14:13:01 +02:00
Laurent Gomila
f5bca33eaa Fixed X11 error caused by the previous commit 2012-09-19 23:12:45 +02:00
Laurent Gomila
b75e340dc0 All windows and contexts now use the same X display (Linux) 2012-09-18 22:45:29 +02:00
Laurent Gomila
04620b9f2f sf::Mouse::isButtonPressed nows uses logical buttons 2012-08-27 10:33:36 +02:00
Laurent Gomila
18f1b6263a Joystick check on Linux is now a lot faster (globally improves the performances of pollEvent) 2012-08-26 14:57:43 +02:00
Laurent Gomila
d716b3657c Minor improvement in VertexArray::getBounds 2012-08-24 16:20:27 +02:00
Laurent Gomila
692240f60d sf::Sprite::setTexture(..., false) resets the texture rect only if it hasn't been set before 2012-08-24 16:19:43 +02:00
Laurent Gomila
abd842510e Fixed divide by zero when calling getPlayingOffset on an uninitialized sound stream 2012-08-13 23:11:27 +02:00
Laurent Gomila
1b1bc4c067 sf::Text no longer forces the BlendAlpha blending mode 2012-08-10 15:03:28 +02:00
Laurent Gomila
2b3d9bdd91 Fixed GL_MATRIX_MODE incorrectly restored after calling popGLStates 2012-08-08 20:44:52 +02:00
Laurent Gomila
e4ea6865cd Removed Arial.hpp from CMakeLists.txt 2012-08-04 11:24:43 +02:00
Laurent Gomila
a0c1f5f50f Removed the built-in default font 2012-08-04 00:08:14 +02:00
binary1248
7f1217bfd1 Use glDeleteRenderbuffersEXT to delete m_depthBuffer 2012-07-31 03:19:50 +03:00
Marco Antognini
68494d0dbb Fixed sf::Keyboard on Mac OS X 2012-07-16 16:27:27 +02:00
Laurent Gomila
3180f83160 Changed Transformable::setRotation so that the angle is always in [0 .. 360] 2012-07-15 14:56:23 +02:00
Laurent Gomila
26d5620817 Shape::setOutlineThickness now allows negative values 2012-07-15 13:47:14 +02:00
Laurent Gomila
faf8a233db Merge branch 'master' of github.com:LaurentGomila/SFML 2012-07-09 23:32:11 +02:00
Laurent Gomila
7faf5857ec Added a sf::Key::Unknown key code for unsupported keys 2012-07-09 23:26:37 +02:00
Marco Antognini
4a482b2385 Fixed TextEntered event on Mac OS X (Close #192) 2012-07-08 19:40:41 +02:00
Laurent Gomila
c3fb58b33f Texture::bind no longer crashes when the texture is invalid 2012-07-07 21:38:57 +02:00
Laurent Gomila
449c7b0e3e Minor correction in comments 2012-07-07 20:14:45 +02:00
kimci86
75fee5675a Better behavior of sf::Event::Resized on Windows 2012-07-06 18:44:45 +02:00
Chase LaCas
7d96eb8c62 Fixed bug in the Windows joystick handling converting POV hat angles to their PovX and PovY component axes. 2012-07-01 16:26:12 -04:00
Laurent Gomila
679ec71b95 Forgot a little something in the previous commit :) 2012-06-26 21:56:55 +02:00
Laurent Gomila
aa534a0936 Fixed crash in SocketSelector::add when passing an invalid socket 2012-06-26 21:55:45 +02:00
Laurent Gomila
5706111088 A sprite can now be flipped by setting a texture rect with negative width/height 2012-06-19 18:36:12 +02:00
Laurent Gomila
dd51b3d8ff Renamed Keyboard::Back to Keyboard::BackSpace 2012-06-19 18:21:16 +02:00
Laurent Gomila
3d02d4c795 OpenGL culling is now explicitly disabled in SFML's internal states 2012-06-14 18:05:47 +02:00
Marco Antognini
82be322731 Fixed Mac OS X fullscreen mode 2012-06-06 13:36:48 +02:00
Laurent Gomila
76e04a8d00 Added a workaround in JoystickImpl::isConnected on Windows, to limit the number of calls to joyGetPosEx which takes too long in certain situations 2012-05-13 21:53:27 +02:00
Laurent Gomila
ac43578f75 Fixed crash when creating an empty sf::Image 2012-05-10 22:48:02 +02:00
Laurent Gomila
5207930169 Fixed glyphs sometimes not shown with high font sizes 2012-05-10 18:07:17 +02:00
Laurent Gomila
3c317cab9b Fixed crash when loading empty shaders 2012-05-09 18:03:54 +02:00
Laurent Gomila
8327870c9f Fixed warnings with recent MinGW versions that already define the Windows version macros 2012-05-06 17:32:10 +02:00
Marco Antognini
19cdceb039 Fixed Mac OS X 10.6 support
This time it *should* be ok!
2012-04-29 21:12:39 +02:00
Marco Antognini
b18b771c33 Fixed typos 2012-04-28 22:05:10 +02:00
Marco Antognini
3994742aed Fixed regression introduced in fixing #207 2012-04-25 17:45:07 +02:00
Marco Antognini
d37065e4de Improved -setWindowPositionToX:Y: 2012-04-21 21:20:43 +02:00
Marco Antognini
3e8961d05f Fixed view resizing with Cocoa (close #207) 2012-04-21 21:17:36 +02:00
Laurent Gomila
c750698333 Minor correction in error message 2012-04-15 18:09:06 +02:00
Marco Antognini
19276a552e Improved Mac OS X implementation (Close #195) 2012-04-10 09:57:24 +02:00
Marco Antognini
cea0839f45 Updated Mac OS X code according to commit 8c776f33c1 2012-04-06 15:40:29 +02:00
Laurent Gomila
8c776f33c1 Private virtual functions are now protected, so that sub-classes can call them if necessary (and they appear in the API doc :) 2012-04-04 22:33:53 +02:00
Laurent Gomila
8d0da1d9d6 Replaced char* arguments with void* for raw data 2012-04-03 19:06:32 +02:00
Laurent Gomila
69f387de22 Fixed bug in texture creation (was a mistake in last commit) 2012-04-01 10:01:53 +02:00
Laurent Gomila
17e6a45a90 Replaced getWidth/getHeight with getSize in sf::Texture and sf::Image 2012-03-31 22:37:13 +02:00
Laurent Gomila
90ba800e1b Fixed two more casting errors (signed / unsigned) in sf::Time 2012-03-29 17:54:35 +02:00
Laurent Gomila
bdf3380cb3 Fixed a bug in Time::asMilliseconds 2012-03-29 17:21:10 +02:00
Laurent Gomila
859074b3cc RenderTarget::convertCoords now takes a Vector2i argument 2012-03-27 17:17:59 +02:00
Laurent Gomila
ac45dc9cba GL states are no longer polluted by SFML's ones when mixing with custom OpenGL code 2012-03-27 17:09:19 +02:00
Laurent Gomila
24f8c3535d Updated stb_image to latest version (1.33) 2012-03-17 17:09:47 +01:00
Laurent Gomila
ee7cd94220 Fixed various minor warnings 2012-03-17 17:00:19 +01:00
Laurent Gomila
78e7dcea38 Fixed sf::BlendNone not working 2012-03-15 22:37:51 +01:00
Marco Antognini
c741b6459f Updated the copyright text 2012-03-14 14:37:17 +01:00
Laurent Gomila
d592b2a7d1 Updated the copyright text 2012-03-13 18:37:34 +01:00
Marco Antognini
2ef92a2af2 Updated Mac OS X code according to commits ff5b69d312 and 14ac411542 2012-03-12 23:04:06 +01:00
Laurent Gomila
7d91763606 Fixed error on ALCheck.hpp and GLCheck.hpp header names 2012-03-11 20:13:50 +01:00
Laurent Gomila
1dad4219a6 Merge branch 'master' of github.com:LaurentGomila/SFML 2012-03-11 19:11:00 +01:00
Laurent Gomila
14ac411542 Changed the naming convention for public member variables/functions and free functions (using lowerCase instead of UpperCase) 2012-03-11 19:10:37 +01:00
Marco Antognini
2680d3df65 Updated Mac OS X code according to 15e9d999b3 commit 2012-03-09 11:45:37 +01:00
Laurent Gomila
ff5b69d312 Changed the naming convention for member variables (prefix changed from "my" to "m_") 2012-03-09 01:48:45 +01:00
Laurent Gomila
15e9d999b3 Added Window::GetPosition, and renamed some setters in Window for better consistency 2012-03-07 23:29:54 +01:00
Laurent Gomila
90854907b5 Minor internal modifications (renamed New functions to Create) 2012-03-04 18:47:05 +01:00
Laurent Gomila
2de690f02d Fixed right side of underline shape in sf::Text which was transparent 2012-02-26 13:47:19 +01:00
Laurent Gomila
b8ea003eae Changed Transform::Combine to modify *this (more consistent with other functions) 2012-02-20 20:18:48 +01:00
Laurent Gomila
48c7db52c3 Fixed type conversion warnings 2012-02-16 23:09:55 +01:00
Laurent Gomila
e7256e3324 Fixed compile error in Linux/JoystickImpl.cpp 2012-01-31 19:05:43 +01:00
Laurent Gomila
84d75ed487 Fixed Window::SetFramerateLimit 2012-01-31 07:53:02 +01:00
Marco Antognini
918db11074 fix antialiasing on OS X (close issue #161) 2012-01-25 02:53:07 +01:00
Laurent Gomila
10cd729296 The UDP broadcast address is now a valid IpAddress, IpAddress::None is now 0. 2012-01-23 23:01:12 +01:00
Laurent Gomila
108984f71b sf::Time operators now take arguments by value instead of const reference 2012-01-21 15:41:10 +01:00
Laurent Gomila
906a62df0f Each module now has its own export macro, which solves the "unresolved symbol" error with sf::Time::Zero 2012-01-21 10:34:17 +01:00
Laurent Gomila
4116ad033c Added the sf::Time class 2012-01-19 23:51:06 +01:00
Laurent Gomila
e775bd0169 Renamed SoundStream::Chunk::NbSamples to SampleCount, and renamed other nbSamples variables to sampleCount 2012-01-13 15:09:30 +01:00
Laurent Gomila
c2039e866c Renamed Window::IsOpened to IsOpen
Made some minor consistency modifications in internal code
2012-01-13 14:53:36 +01:00
Laurent Gomila
91705fe25c The architecture (32/64 bits) is now detected only on Windows 2012-01-03 18:02:18 +01:00
Laurent Gomila
c0af511ed1 Fixed glBindProgramObject used on systems that don't support shaders 2011-12-31 11:42:05 +01:00
Laurent Gomila
2a546411d5 Added error checking in initialization of GLEW 2011-12-31 11:39:06 +01:00
Laurent Gomila
87b7676b95 Fixed minor error in sf::Font::LoadFromStream 2011-12-30 19:16:20 +01:00
Laurent Gomila
6c3fb426b2 Fixed default color of sf::Text (was black instead of white) 2011-12-29 22:12:21 +01:00
Laurent Gomila
94a9dfbdfb Minor fix in comments 2011-12-26 11:56:27 +01:00
Laurent Gomila
aaa21dfaf6 Corrected the name of some functions/variable 2011-12-25 23:42:43 +01:00
Laurent Gomila
f55da8d8bc Merge branch 'drawables' 2011-12-25 23:08:02 +01:00
Laurent Gomila
191730ac0d Added a render states cache to improve performances 2011-12-25 22:30:38 +01:00
Marco Antognini
167618a89e sf::Joystick now handles controllers designated as "Gamepad" (Fix #138) 2011-12-25 01:41:18 +01:00
Laurent Gomila
b65b19343a Changed the type of Vertex::TexCoords from integers to floats, to make it compatible with buggy ATI drivers 2011-12-21 22:44:21 +01:00
Laurent Gomila
5a4e8d58af Minor modifications 2011-12-21 22:31:42 +01:00
Laurent Gomila
78910b555e Removed unused Context::GetCurrentContextId() 2011-12-21 22:28:53 +01:00
Laurent Gomila
f9147eb2a8 The new Linux clock implementation required to link an extra library 2011-12-20 18:53:40 +01:00
Laurent Gomila
3e89dd652f Rewrote the implementation of sf::Clock, it now ensures microseconds resolution and monotonicity 2011-12-20 18:47:33 +01:00
Laurent Gomila
bc95d855b3 Added a virtual destructor to sf::Transformable 2011-12-19 17:50:15 +01:00
Laurent Gomila
00147856da Fixed minor warnings on Linux 2011-12-13 19:07:40 +01:00
Laurent Gomila
3a732133cb Changed the Unix implementation of sf::Sleep to a more robust one 2011-12-13 19:06:13 +01:00
Laurent Gomila
c33fa1d290 Added SetPointsCount in sf::CircleShape 2011-12-10 15:22:21 +01:00
Laurent Gomila
048abbf46f Renamed GetOutlinePoint/GetOutlinePointsCount to GetPoint/GetPointsCount in sf::Shape, and made them public 2011-12-10 14:58:18 +01:00
Laurent Gomila
e6956d8e4d Removed the sf::StarShape class 2011-12-10 14:51:03 +01:00
Laurent Gomila
c9b87ec8a9 Added support for vertex shaders in sf::Shader
Rewrote the Shader example
2011-12-10 13:02:38 +01:00
Laurent Gomila
bc64da0469 Fixed bug in Music::SetPlayingOffset (didn't work above a given timestamp) 2011-12-09 20:56:48 +01:00
Laurent Gomila
4d0a6a299a Fixed typo 2011-12-06 18:08:37 +01:00
Laurent Gomila
528961c967 Fixed bug in sf::Shape 2011-12-04 20:59:26 +01:00
Laurent Gomila
6381d10d40 Made one-arg constructors explicit in shapes classes 2011-12-04 20:43:28 +01:00
Laurent Gomila
0548b226ef sf::Shape now outputs less warnings about the number of points 2011-12-04 11:25:20 +01:00
Laurent Gomila
7deec641ac Fixed compile error caused by previous commit 2011-12-04 11:22:46 +01:00
Laurent Gomila
44cc9bad84 Added constructors with parameters for shapes, and default-constructed shapes are now always empty 2011-12-04 10:53:14 +01:00
Laurent Gomila
6034b80ddf sf::ConvexShape was not updated when SetPointsCount or SetPoint was called 2011-12-03 14:24:26 +01:00
Laurent Gomila
eeff685255 Merge branch 'master' into drawables
Conflicts:
	include/SFML/Graphics/Sprite.hpp
	include/SFML/Graphics/Text.hpp
	src/SFML/Graphics/Sprite.cpp
2011-12-02 20:58:14 +01:00
Laurent Gomila
5bae08a2d8 Implemented the new graphics API:
- Removed the internal classes sf::Renderer and sf::Matrix3
- Split sf::Drawable into sf::Drawable and sf::Transformable
- Added sf::Transform
- Added sf::Vertex
- Added sf::VertexArray
- Types of shapes are now handled with their own derived class
- Modified the Pong example
2011-12-01 23:24:58 +01:00
Thomas Knepper
6f44f12faf Explicit use signed char for included font data to enable cross-compile for an arm-based system
From ISO/IEC 9899:1999, 6.2.5.15 (p. 49):
The implementation shall define char to have the same range,
representation, and behavior as either signed char or unsigned char.

Signed-off-by: Thomas Knepper <thknepper@gmx.de>
2011-11-29 21:57:53 +01:00
Laurent Gomila
09854baccf Fixed compile error on Unix systems (caused by the latest commit) 2011-11-21 07:55:52 +01:00
Laurent Gomila
ac16c8562f Merge branch 'master' of github.com:LaurentGomila/SFML 2011-11-20 13:50:42 +01:00
Laurent Gomila
a5d40de8a2 Replaced unsigned long with Uint32 in the public API (avoids size problems with bindings) 2011-11-20 13:50:11 +01:00
Marco Antognini
a9f0ba7943 Remove unused file 2011-11-09 20:13:48 +01:00
Laurent Gomila
017ef652f9 Removed the Resource and ResourcePtr classes 2011-11-05 15:50:44 +01:00
Laurent Gomila
46b2c096c4 Added extra underscores to gcc 4 specific attributes (visibility, constructor) 2011-11-04 08:01:56 +01:00
Laurent Gomila
5b6c824773 Fixed error in subrect adjustment in Texture::LoadFromImage 2011-10-07 08:03:24 +02:00
Laurent Gomila
9f7573c395 Fixed signed/unsigned comparison 2011-10-03 22:10:48 +02:00
Laurent Gomila
35bdbf6e2e Merge branch 'master' of github.com:LaurentGomila/SFML 2011-09-30 13:44:12 +02:00
Laurent Gomila
d58d6e51bc Added explicit include directories for OpenGL and X11 in CMake files 2011-09-30 13:43:52 +02:00
Marco Antognini
0fd992d56e fix OS X alert related to key event (close #98) 2011-09-24 13:34:58 +02:00
Laurent Gomila
2856090573 Fixed error when calling Shader::LoadFromFile multiple times on the same instance 2011-09-18 22:46:11 +02:00
Marco Antognini
91d56172b0 Improved SFML integration with Cocoa 2011-09-18 10:43:21 +02:00
Laurent Gomila
78a625de22 CMake configuration is now stopped if the Xrandr library (Linux) is not found 2011-09-10 18:36:12 +02:00
Laurent Gomila
dad362bf69 Fixed Listener::GetGlobalVolume returning wrong values 2011-09-08 08:16:37 +02:00
Marco Antognini
ecaafa9a18 Fixed sf::Window::Create on OS X (Closes #86) 2011-09-05 18:54:27 +02:00
Marco Antognini
6c0535db45 Fixed OSX/ShowMouseCursor 2011-09-05 18:53:20 +02:00
Marco Antognini
32563cdc6f Improved SFML integration with Cocoa 2011-09-05 18:53:20 +02:00
Laurent Gomila
d6a40cf062 Fixed IpAddress::GetLocalAddress() (was incorrectly returning 127.0.0.1) 2011-09-04 14:46:36 +02:00
Laurent Gomila
c51e22cb52 Fixed sf::Mouse::IsButtonPressed and sf::Keyboard::IsKeyPressed incorrectly returning true on Windows 2011-09-02 23:03:46 +02:00
Laurent Gomila
7f390367f1 OpenGL.hpp now includes windows.h only with VC++ 2011-09-02 19:26:49 +02:00
Laurent Gomila
e5d635350e Fixed sf::Music::GetDuration() 2011-08-19 18:44:46 +02:00
Laurent Gomila
1e2aca6e49 Fixed sf::Texture copy constructor 2011-08-19 18:28:21 +02:00
Laurent Gomila
9cda5d0474 Fixed Texture::LoadFromXxx functions not working when loading a sub-rectangle of the image 2011-08-16 08:11:36 +02:00
Laurent Gomila
541509d2a7 sf::Texture's function don't preserve the current texture binding anymore (was used to keep mixing SFML and OpenGL safe, but the potential performance loss was too high -- glGet* may trigger a glFlush) 2011-08-12 15:40:32 +02:00
Marco Antognini
b7c788dbf9 Fixed fullscreen exit 2011-08-10 10:42:37 +02:00
Marco Antognini
6b98053101 Improved OSX/Cmake and dylibs' execution path 2011-08-08 23:41:30 +02:00
Laurent Gomila
7f11d16f3b Fixed SoundStream::GetPlayingOffset looping after a few seconds 2011-08-08 20:49:57 +02:00
Laurent Gomila
d5ced60dec Fixed font's textures not smoothed 2011-08-07 19:33:26 +02:00
Laurent Gomila
9e76f583b9 Fixed a warning in sfml-window (on Windows) 2011-08-07 19:21:59 +02:00
Martin Foot
13986b2a3b Fix CMake variables to allow adding SFML as a dependency. 2011-08-07 14:33:42 +01:00
Laurent Gomila
3bba2fab98 Merge branch 'master' of github.com:LaurentGomila/SFML 2011-08-03 20:10:28 +02:00
Laurent Gomila
f5294d5342 Added Image::FlipHorizontally and Image::FlipVertically 2011-07-29 22:04:59 +02:00
Marco Antognini
732b789e2e Improved OSX/Joysticks performance 2011-07-28 18:01:41 +02:00
Marco Antognini
fe3ef8c34c Minor comment update via GitHub 2011-07-25 02:57:41 -07:00
Marco Antognini
acfdc5b8f2 Minor Antialiasing update for Mac OS X 2011-07-23 13:41:57 +02:00
Laurent Gomila
e509f01180 Split sf::Image into sf::Image and sf::Texture (implements issue #18) 2011-07-22 22:31:27 +02:00
Laurent Gomila
d337a98321 Fixed a minor bug in Font::LoadFromStream 2011-07-21 20:37:46 +02:00
Laurent Gomila
853c2349ed Merge branch 'master' of github.com:LaurentGomila/SFML 2011-07-20 08:04:12 +02:00
Laurent Gomila
3d4bb1f568 Renamed InputStream::GetPosition to InputStream::Tell (more consistent naming) 2011-07-20 08:03:40 +02:00
Marco Antognini
ae489fa5d0 Prevent Mac OS from sending a sound/visual alert when command is pressed with another key 2011-07-19 15:06:52 +02:00
Laurent Gomila
aada9ca545 Fixed missing <cstring> include in font.cpp 2011-07-17 18:32:14 +02:00
Laurent Gomila
dfe7cba373 Merge branch 'master' of github.com:LaurentGomila/SFML 2011-07-17 12:22:08 +02:00
Laurent Gomila
c5276ff30a Added a new InputStream interface, and LoadFromStream functions to resource classes 2011-07-17 12:21:47 +02:00
Laurent Gomila
73665bd50a Fixed error in Mouse::Set/GetPosition when the given window was already closed 2011-07-17 11:26:28 +02:00
Marco Antognini
c3e64230cb OSX/Mouse::GetPosition(relativeTo) no longer complains when the window is closed 2011-07-14 09:59:20 +02:00
Marco Antognini
535733f5c7 Implemented OSX/Joysticks and fixed some tabulations 2011-07-13 22:16:34 +02:00
Laurent Gomila
61adc51d09 Fixed rectangle bug in Image::CopyScreen 2011-07-11 23:42:32 +02:00
Laurent Gomila
e46016a79d Removed Window::GetMouseFocusWindow 2011-07-11 23:26:09 +02:00
Laurent Gomila
d772d3669a Upgraded to version 1.31 of stb_image 2011-07-11 08:06:07 +02:00
Marco Antognini
88c5e350bf Merge branch 'keepup'
Conflicts:
	bindings/c/src/SFML/System/Mutex.cpp
	bindings/c/src/SFML/Window/Context.cpp
	src/SFML/Window/CMakeLists.txt
	src/SFML/Window/InputImpl.hpp
	src/SFML/Window/Mouse.cpp
	src/SFML/Window/OSX/InputImpl.cpp
	src/SFML/Window/OSX/InputImpl.hpp
	src/SFML/Window/OSX/JoystickImpl.cpp
	src/SFML/Window/OSX/JoystickImpl.hpp
	src/SFML/Window/OSX/SFApplication.h
	src/SFML/Window/OSX/SFOpenGLView.mm
	src/SFML/Window/Win32/Joystick.hpp
	src/SFML/Window/Win32/JoystickImpl.hpp
2011-07-10 06:11:47 +02:00
Marco Antognini
d33ecd17ad Implemented OSX/InputImpl::IsMouseButtonPressed 2011-07-10 05:58:05 +02:00
Marco Antognini
5fbf147cc0 Added support for several connected keyboards in HIDInputManager 2011-07-10 05:58:05 +02:00
Marco Antognini
b5008ba01b Commented out some sf::Err useless reports 2011-07-10 05:58:05 +02:00
Marco Antognini
d80808b61d Implemented OSX/InputImpl::IsKeyPressed 2011-07-10 05:58:05 +02:00
Marco Antognini
2f443ea08a Implemented all four OSX/InputImpl::Get/SetMousePosition 2011-07-10 05:58:05 +02:00
Marco Antognini
0f102c6d6e Removed unnecessary -cursorPosition messages 2011-07-10 05:58:04 +02:00
Marco Antognini
cd1918b93d Improved consistency in SFWindowController and added security check in SFOpenGLView 2011-07-10 05:57:52 +02:00
Laurent Gomila
ea1bde7a61 Fixed error in Linux/InputImpl 2011-07-08 15:23:22 +02:00
Laurent Gomila
c9b539a617 Fixed the Linux implementation of the new Mouse functions 2011-07-08 15:23:22 +02:00
Laurent Gomila
6fd80e2598 Removed Window::GetCursorPosition/SetCursorPosition, added Mouse::GetPosition/SetPosition (two versions: one that handles desktop coordinates, one that handles window coordinates) 2011-07-08 15:23:22 +02:00
Marco Antognini
26d4c533ee Fixed a minor warning and a compile error and improved consistency in comments 2011-07-08 15:23:06 +02:00
Marco Antognini
a55ae4b758 Implemented OSX/InputImpl::GetMousePosition() 2011-07-08 15:22:54 +02:00
Marco Antognini
a609a7114e Implemented WindowImplCocoa::GetCursorPosition() 2011-07-08 15:22:32 +02:00
Marco Antognini
99341c31db Vital fix, now it compiles but some implementation is missing 2011-07-08 15:16:23 +02:00
Laurent Gomila
7d2fa550c0 Updated CSFML and SFML.Net to the new input classes 2011-07-08 15:16:22 +02:00
Laurent Gomila
3cd3e88e0e Fixed CMakeLists.txt in src/SFML/Window 2011-07-08 15:16:22 +02:00
Marco Antognini
1066caa771 Fix annoying sound alert when escape is pressed on OS X 2011-07-08 15:16:22 +02:00
Laurent Gomila
c850d3b111 Implemented global inputs (sf::Keyboard, sf::Mouse, sf::Joystick) and removed the event-based sf::Input.
Window::WaitEvent now works with joystick events as well.
Added Event::JoystickConnected and Event::JoystickDisconnected.
Added Window::GetCursorPosition.
2011-07-08 15:16:22 +02:00
Laurent Gomila
ac43d278aa Fixed error in Linux/InputImpl 2011-07-08 08:17:17 +02:00
Laurent Gomila
4fe9a3843a Fixed the Linux implementation of the new Mouse functions 2011-07-08 08:15:36 +02:00
Laurent Gomila
270f505570 Removed Window::GetCursorPosition/SetCursorPosition, added Mouse::GetPosition/SetPosition (two versions: one that handles desktop coordinates, one that handles window coordinates) 2011-07-08 07:56:14 +02:00
Laurent Gomila
2d705fee04 Fixed a minor warning and a compile error 2011-07-06 07:49:06 +02:00
Laurent Gomila
15f6eca815 Updated CSFML and SFML.Net to the new input classes 2011-07-05 23:04:03 +02:00
Laurent Gomila
566699f912 Fixed CMakeLists.txt in src/SFML/Window 2011-07-04 19:43:36 +02:00
Laurent Gomila
39780549ea Merge branch 'master' of github.com:LaurentGomila/SFML 2011-07-04 13:27:29 +02:00
Laurent Gomila
8621e45960 Implemented global inputs (sf::Keyboard, sf::Mouse, sf::Joystick) and removed the event-based sf::Input.
Window::WaitEvent now works with joystick events as well.
Added Event::JoystickConnected and Event::JoystickDisconnected.
Added Window::GetCursorPosition.
2011-07-04 08:21:40 +02:00
Marco Antognini
edf82be16b Fix autorelease problem (issue #62) 2011-07-03 22:41:06 +02:00
Marco Antognini
efd97597bf Fix annoying sound alert when escape is pressed on OS X 2011-07-03 22:41:06 +02:00
Marco Antognini
202e41c80c minor compiler warnings fixed 2011-07-03 17:21:05 +02:00
Marco Antognini
f9435eb881 Fixed SetCursorPosition in fullscreen mode and DRYed some code
SetCursorPosition is now working properly in fullscreen mode.
Some redundant code has been removed and refactored.
2011-06-24 00:10:04 +02:00
Laurent Gomila
5469eaa8c0 Added an assert in Thread::Wait() if the thread tries to wait for itself 2011-06-14 17:49:33 +02:00
Laurent Gomila
d497401e3a Reverted changes in the Win32/ThreadImpl (didn't compile on MinGW and Windows < Vista) 2011-06-14 08:09:32 +02:00
Laurent Gomila
48e30ea0e3 Made the behaviour of Thread::Wait consistent across implementations when called from its owner thread 2011-06-12 14:08:54 +02:00
Laurent Gomila
b0ebca9d29 Minor fix in UdpSocket::Send(Packet) 2011-06-12 13:14:50 +02:00
Laurent Gomila
0dc5003969 Fixed warning in GlxContext constructor 2011-06-11 18:51:43 +02:00
Laurent Gomila
175cddee58 UdpSocket::Send(Packet) is now limited to UdpSocket::MaxDatagramSize, so that data is never split into multiple datagrams, which removes a lot of potential major problems 2011-06-11 11:28:43 +02:00
Laurent Gomila
79d5217c42 Minor fix in sf::Text 2011-06-09 08:37:25 +02:00
Laurent Gomila
df61292f65 Made sf::Mutex recursive on Unix, the behaviour is now consistent across platforms 2011-05-31 23:31:25 +02:00
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