LaurentGom
b6b423bd8f
Fixed possible crash in sf::Font
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1364 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-19 22:19:29 +00:00
LaurentGom
2e40f341ba
Some minor modifications in RenderImage implementation
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1363 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-19 22:07:31 +00:00
LaurentGom
c237305f9b
Removed all the automatic batching stuff and replaced it with a more straight-forward implementation using a state cache for optimizing performances
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1362 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-19 20:39:32 +00:00
LaurentGom
40f13c7302
Removed all the remaining const_cast, and replaced them with mutable members (this is needed for optimized lazy calculations)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1353 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-13 13:55:20 +00:00
LaurentGom
273cba055c
Added Style::Default for windows' style
...
Removed unused #includes from RenderWindow.cpp
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1345 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-11 12:46:44 +00:00
LaurentGom
7ad6c64358
Fixed current view not being updated when window is resized (bug introduced with the latest modifications on view handling)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1344 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-11 09:33:55 +00:00
LaurentGom
7b83fbc544
Merged all the joystick fixes from trunk
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1343 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-11 09:04:59 +00:00
LaurentGom
b2b0cb2144
Fixed memory leak in sf::Font (reference counter was never initialized)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1342 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-10 15:52:08 +00:00
LaurentGom
8df50b9774
Fixed wrong joystick POV values in the Linux implementation
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1341 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-09 17:24:51 +00:00
LaurentGom
489ee2b17b
Fixed POV handling on Linux
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1339 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-09 09:13:06 +00:00
LaurentGom
44c943e651
FS#146 - Fix current OpenGL matrix mode not properly saved when PreserveOpenGLStates is activated
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1338 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-08 17:21:03 +00:00
LaurentGom
b9a2d3a8f4
Fixed joystick axes mapping (to be tested)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1332 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-06 14:28:20 +00:00
LaurentGom
cbee33e764
Fixed POV value initialized to 0 instead of -1 in sf::Input
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1331 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-06 14:19:37 +00:00
LaurentGom
5eaec85d87
Added a special value of -1 for centered joystick POV position
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1329 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-06 08:51:25 +00:00
LaurentGom
db72c6e47c
Renamed Mouse::Count to Mouse::ButtonCount
...
Renamed Joy::Count to Joy::AxisCount
Added Joy::Count and Joy::ButtonCount
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1328 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-06 08:48:57 +00:00
LaurentGom
e2d0ffcdcf
Fixed the number of supported joysticks in sf::Input
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1327 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-06 08:36:55 +00:00
LaurentGom
bd9a60fef2
Reverted last modifications in sf::Input (they were supposed to happen in trunk)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1326 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-06 08:32:26 +00:00
LaurentGom
9bda3a4ef2
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1325 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-06 07:16:22 +00:00
LaurentGom
5c68de5e80
Forgot something in last commit :)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1324 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-05 19:18:20 +00:00
ceylo
42b97d230f
Replaced GetAxesCount() with HasAxis().
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1321 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-05 18:10:29 +00:00
LaurentGom
63867b654c
Fixed error in last commit
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1319 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-05 16:50:21 +00:00
LaurentGom
8bbf7dfc46
FS#143 - Increase the number of supported joysticks to 4
...
FS#142 - Fix joystick axes being sometimes ignored
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1318 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-05 16:48:32 +00:00
laurentgom
da44e3d8e5
Applied the anti-aliasing modifications to the Linux implementation
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1317 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-02 18:37:02 +00:00
LaurentGom
f2a1ba3cda
Improved the anti-aliasing level selection algorithm
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1316 4e206d99-4929-0410-ac5d-dfc041789085
2010-01-02 13:42:32 +00:00
LaurentGom
6d717f3c87
Modified sf::RenderTarget so that it handles views by value rather than by reference
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1315 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-31 16:43:24 +00:00
LaurentGom
1f2b441c9a
Fixed alpha calculation in Image::Copy with applyAlpha = true
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1312 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-27 23:23:45 +00:00
LaurentGom
7947044a83
Fixed character weight too high for the sf::Text::Bold style
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1311 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-19 23:17:24 +00:00
LaurentGom
c72312f9a4
Improved the quality of sf::Text::Bold and made it more efficient
...
Made sf::Text::Underlined style more robust
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1310 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-14 21:26:30 +00:00
LaurentGom
3a34f81561
Complete rewrite of sf::Font to make it more flexible (no more fixed charset and size)
...
FS#125 - Fix tab character not working in sf::String
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1309 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-13 15:49:30 +00:00
LaurentGom
fb7470cbc3
FS#133 - Add a function to make fast updates of an image's pixels from an external source
...
Removed sf::Image constructors that called CreateXxx or LoadXxx (there was no way to check errors)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1307 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-05 11:35:27 +00:00
LaurentGom
aff5c1a47c
Renamed Image::GetValidTextureSize to Image::GetValidSize
...
Added Image::GetMaximumSize
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1306 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-04 13:55:16 +00:00
LaurentGom
cacd150569
Fixed typo
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1305 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-04 07:10:37 +00:00
LaurentGom
053042bf5a
Fixed wglChoosePixelFormatARB crashing when not supported
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1304 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-04 06:35:03 +00:00
LaurentGom
4051c1d99d
Fixed a bug in GeometryRendererVBO which caused some quads to be ignored
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1303 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-03 19:36:49 +00:00
LaurentGom
a8a3b423bf
Fixed endless loop when creating an OpenGL 3.x context (bug introduced by the last modification)
...
Updated the API documentation of the graphics module
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1302 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-03 16:47:56 +00:00
LaurentGom
08f819e49e
WGL implementations not supporting wglChoosePixelFormatARB (for antialiasing) no longer crash
...
When an OpenGL 3.x context cannot be created, the minor version is decreased until it reaches 0 (instead of giving up and switching to a 2.x context immediately)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1300 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-03 08:49:45 +00:00
LaurentGom
4418469d97
Added SetSmooth / IsSmooth to sf::RenderImage
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1299 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-03 08:29:35 +00:00
LaurentGom
10296333be
Fixed minor warnings after the last commit
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1298 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-02 20:50:21 +00:00
LaurentGom
6bd654b854
Fixed wrong type for OpenGL indices (std::size_t could be 64 bits on 64 bits platforms -- now using sf::Uint32)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1297 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-02 20:45:53 +00:00
LaurentGom
cf9ffb0d27
Fixed a const issue in SelectorBase::GetSocketReady on Mac OS X
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1296 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-02 18:41:22 +00:00
LaurentGom
35cfe7a8e4
Removed the workaround for shaders parameters (too slow!)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1295 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-29 10:10:10 +00:00
LaurentGom
642c4fecfa
Fixed compile warnings in sfml-graphics
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1293 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-27 08:21:41 +00:00
LaurentGom
092720c0c2
Fixed wrong #include in WindowImplX11.cpp on Linux
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1292 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-27 07:43:25 +00:00
LaurentGom
49fbdb56df
Fixed endless recursion in audio initialization
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1291 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-26 22:32:38 +00:00
LaurentGom
d979ca254e
Fixed linker errors in sfml-network and csfml-network
...
Made every read-only pointer "const" in CSFML
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1290 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-26 20:09:57 +00:00
LaurentGom
29ecc552c2
Fixed crashes at startup when using the audio module
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1289 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-26 09:03:00 +00:00
LaurentGom
ae57e56a98
FS#70 - Add support for unicode strings in sf::Packet
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1287 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-26 08:26:01 +00:00
LaurentGom
78247bd386
FS#90 - Improve Unicode string classes
...
Added the sf::String class to replace (and enhance) sf::Unicode::Text
FS#138 - Rename sf::String to sf::Text
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1286 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-26 08:07:38 +00:00
LaurentGom
9f063921c9
Fixed RenderWindow being automatically deactivated sometimes
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1285 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-26 07:33:03 +00:00
LaurentGom
8bc4460d15
Added an automatic Flush() when drawing with a shader (temporary workaround to make shaders parameters work properly)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1283 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-22 22:15:56 +00:00
laurentgom
b735c7f3d1
Fixed a memory leak in sf::Window on Linux
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1282 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-22 10:08:11 +00:00
LaurentGom
a32d30c1be
Fixed a memory leak in sf::Window implementation on Windows
...
Synchronized sfml2 with trunk
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1280 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-21 21:39:31 +00:00
LaurentGom
17cf6873aa
Fixed a memory leak in sf::Window implementation on Windows
...
Synchronized sfml2 with trunk
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1280 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-21 21:39:31 +00:00
laurentgom
877df21756
Removed STATIC and DEBUGBUILD options from makefiles, debug symbols are now generated by default and installed to a separate folder
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1279 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-19 23:31:33 +00:00
LaurentGom
548991d665
Fixed error in WGL context creation with anti-aliasing level too high
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1278 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-18 21:36:09 +00:00
LaurentGom
3fb9888b49
Fixed error in WGL context creation with anti-aliasing level too high
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1277 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-18 21:33:23 +00:00
LaurentGom
0e65f72b61
Fixed wrong blending mode with glBlendFuncSeparate
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1265 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-06 13:22:39 +00:00
LaurentGom
f593ea29e7
Fixed alpha-blended drawables getting incorrect alpha values when rendered through a RenderImage
...
Replaced internal calls to glewIsSupported with the corresponding constants (faster checks)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1264 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-06 10:38:07 +00:00
LaurentGom
5d778b2bc4
Improved the API documentation of sf::View
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1263 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-04 16:04:18 +00:00
LaurentGom
0f8b8d6c0f
Forgot to remove temporary code in ContextGLX.cpp :)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1262 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-04 08:04:43 +00:00
LaurentGom
8e4c61dd19
Added the context version to ContextSettings
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1261 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-03 15:13:11 +00:00
LaurentGom
9db63151e1
Updated API documentation for sf::Shader
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1260 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-03 14:09:58 +00:00
LaurentGom
d7bd00afc0
FS#25 - Change sf::PostFx to a more general purpose pixel shader class (sf::Shader)
...
Updated the PostFx sample, renamed to Shader
Renamed all the static X::CanUseX() functions to X::IsAvailable() to make the API more consistent
Moved .def files from /build/VC200X to /src in CSFML
Minors fixes in CSFML
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1258 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-03 09:04:40 +00:00
LaurentGom
472627f65f
Synchronized with trunk
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1255 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-31 18:49:31 +00:00
LaurentGom
78850be8df
FS#134 - Fix Event::TextEntered ignoring the key repeat state
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1254 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-31 16:24:10 +00:00
LaurentGom
7d5f354850
Improved the API documentation in the audio module
...
Added sf::SoundSource as a base class of both sf::Sound and sf::SoundStream
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1253 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-30 16:14:26 +00:00
LaurentGom
3c0d42fdd0
Improved the API documentation in the audio module
...
Removed the bufferSize parameter from sf::Music constructor
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1252 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-29 16:05:22 +00:00
LaurentGom
33f54ad6cd
Improved the API documentation in the audio module
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1251 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-29 09:32:17 +00:00
laurentgom
6df95868d0
Added mouse position to mouse wheel event on Linux
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1250 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-27 16:05:00 +00:00
LaurentGom
688a8f15da
FS#131 - Add mouse position to the sf::Event::MouseWheelMoved event
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1249 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-27 15:56:16 +00:00
laurentgom
0d66fa1776
Implemented WaitEvent on Linux
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1248 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-27 12:26:31 +00:00
LaurentGom
a68ff5713b
FS#65 - Add a blocking WaitEvent function
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1247 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-27 11:50:11 +00:00
LaurentGom
fd91756a9e
Removed a bad error message :)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1246 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-27 10:39:50 +00:00
LaurentGom
17190bd158
Various improvements on OpenGL contexts handling
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1245 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-27 09:20:20 +00:00
LaurentGom
31b72b6385
Fixed sfView_GetRotation missing in CSFML (and thus causing a crash in SFML.Net)
...
Updated Visual C++ 2005 export files for CSFML
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1244 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-21 07:37:56 +00:00
LaurentGom
531c54bb13
Oops!
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1242 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-17 14:01:42 +00:00
LaurentGom
39a8ba4c52
Updated documentation
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1241 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-17 08:50:13 +00:00
LaurentGom
b2dfcf9d0c
Removed the "template for new ports"
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1240 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-15 08:40:14 +00:00
LaurentGom
1f3d7b6d0c
Updated documentation
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1239 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-15 08:37:32 +00:00
LaurentGom
49ebb40c4d
Disabled OpenGL 3 contexts on Ljnux -- again (the problem is still there)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1238 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-14 18:27:21 +00:00
LaurentGom
b201b18f3d
Added experimental code for stb_truetype (FreeType is still the default backend for loading fonts -- uncomment "#define SFML_USE_STBTT" in FontLoader.cpp to switch to stb_truetype)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1236 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-14 09:30:09 +00:00
laurentgom
d8448a4938
Experimenting a fix for the GLX issue with ATI cards, put OpenGL 3 contexts handling back
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1235 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-13 19:03:49 +00:00
LaurentGom
fc22927874
Synchronized with trunk
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1232 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-08 07:15:26 +00:00
LaurentGom
49b97bb09a
Fixed "lib" directory not created before building libraries, in SFML and CSFML Linux makefiles
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1231 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-08 07:08:34 +00:00
LaurentGom
9483ecdfef
Fixed copy constructor in sf::Image (didn't properly copy the pixels when the source image was a RenderImage)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1228 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-03 14:48:54 +00:00
LaurentGom
668f8d3db8
Removed stupid debug stuff
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1227 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-02 13:23:51 +00:00
LaurentGom
b4edcffc43
Fixed broken RenderImage
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1226 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-02 09:49:28 +00:00
LaurentGom
fc4867c586
Fixed bad sf::String quality
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1225 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-01 07:03:24 +00:00
LaurentGom
b7f7ac7f1a
Changed the default install directory to /usr/local in Linux makefiles
...
Fixed absolute symbolic links to relative ones in Linux makefiles
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1224 4e206d99-4929-0410-ac5d-dfc041789085
2009-09-28 10:07:00 +00:00
laurentgom
282dfe6b6f
Fixed broken rendering
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1223 4e206d99-4929-0410-ac5d-dfc041789085
2009-09-24 13:46:01 +00:00
LaurentGom
a5e20f23ca
Synchronized with trunk
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1222 4e206d99-4929-0410-ac5d-dfc041789085
2009-09-24 08:33:34 +00:00
LaurentGom
565172fc75
Added automatic batching to improve performances
...
Moved the ConvertCoords function from RenderWindow to RenderTarget
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1221 4e206d99-4929-0410-ac5d-dfc041789085
2009-09-24 07:50:08 +00:00
LaurentGom
ccddb8fffe
Added missing -lX11 in sfml-graphics makefile for Linux
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1218 4e206d99-4929-0410-ac5d-dfc041789085
2009-09-15 14:42:05 +00:00
LaurentGom
43e745edb8
Added missing -lGL in sfml-graphics makefile for Linux
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1217 4e206d99-4929-0410-ac5d-dfc041789085
2009-09-15 14:19:14 +00:00
ceylo
c140de772d
Added "switch back to desktop mode" feature when switching to another application while the SFML one is in fullscreen mode. Using more demanding screen choice : request the use of the primary screen when several monitors are available.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1216 4e206d99-4929-0410-ac5d-dfc041789085
2009-09-12 12:13:28 +00:00
laurentgom
3be521a912
changed default install dir to /usr/local on Linux, fixed symbolic links to be relative, updated glxext.h for OpenGL3
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1214 4e206d99-4929-0410-ac5d-dfc041789085
2009-09-07 10:14:35 +00:00
ceylo
f446f3d973
Moved Initializer.cpp into Unix directory
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1212 4e206d99-4929-0410-ac5d-dfc041789085
2009-09-05 13:35:04 +00:00
ceylo
51c3d9784e
Moved Initializer.cpp into Unix directory
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1211 4e206d99-4929-0410-ac5d-dfc041789085
2009-09-05 13:34:27 +00:00
LaurentGom
a6e353f11b
Activated OpenGL 3 contexts on Linux
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1210 4e206d99-4929-0410-ac5d-dfc041789085
2009-08-28 20:17:10 +00:00
LaurentGom
0093952872
FS#127 - Make image loading thread-safe
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1205 4e206d99-4929-0410-ac5d-dfc041789085
2009-08-18 07:31:15 +00:00
LaurentGom
fcdc5cdf82
Improved documentation of more classes in the system module
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1204 4e206d99-4929-0410-ac5d-dfc041789085
2009-08-17 10:55:11 +00:00
LaurentGom
351a43f696
Updated the documentation for some sfml-system classes
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1203 4e206d99-4929-0410-ac5d-dfc041789085
2009-08-14 20:00:42 +00:00
LaurentGom
ac0881f6a0
FS#126 - Add an optional parameter to Sprite::SetImage for automatic adjustment of the subrect
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1202 4e206d99-4929-0410-ac5d-dfc041789085
2009-08-14 09:27:00 +00:00
LaurentGom
7a8cc0c76a
Synchronized with trunk
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1201 4e206d99-4929-0410-ac5d-dfc041789085
2009-08-14 08:02:57 +00:00
laurentgom
357e89696b
Added automatic support for OpenGL 3.0 contexts on Linux
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1197 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-27 16:12:49 +00:00
LaurentGom
b5a17a832f
Unconnected joysticks are no longer updated (on Windows)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1195 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-25 10:02:07 +00:00
laurentgom
ec385c64ca
Removed the DisplayRef class in the Linux implementation
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1193 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-24 14:13:50 +00:00
laurentgom
800638ed82
Each window now has its own X display, which solves potential multithreading issues (on Linux)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1192 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-24 14:11:50 +00:00
laurentgom
d3125eecd7
Better handling of X display in OpenGL contexts, which solves some multithreading issues (on Linux)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1191 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-24 13:41:28 +00:00
laurentgom
42a3027d7c
The internal code of VideoMode now uses its own connection to the display instead of a global one (on Linux)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1190 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-24 12:56:04 +00:00
ceylo
e40eb2e64d
Fixed issue with shared OpenGL context not being activated.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1183 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-21 16:56:52 +00:00
LaurentGom
07c0318493
Fixed compile errors
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1178 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-17 06:43:27 +00:00
LaurentGom
ac773e8161
FS#109 - Fix sf::Listener's target being actually a relative direction
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1176 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-12 19:33:56 +00:00
LaurentGom
8e90f147e4
FS#113 - Copy Attenuation and MinDistance members in sf::Sound's copy constructor
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1175 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-12 19:14:00 +00:00
LaurentGom
374af05d5f
Replaces glColor4f with glColor4ub in internal code
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1174 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-12 13:28:44 +00:00
laurentgom
ed0cf87e28
Fixed TCP connect with timeout returning success when the connection failed
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1173 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-12 12:12:48 +00:00
LaurentGom
0f7cb43902
Got rid of glBlendFuncSeparate which caused problems on old hardware -- need to find a proper fix for incorrect alpha values when rendering to a RenderImage
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1172 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-12 10:27:28 +00:00
laurentgom
5869b916ef
P-Buffer implementation fixed and validated on Linux
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1169 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-12 09:37:35 +00:00
laurentgom
1ce18ed1b9
Fixed compile errors on Linux
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1168 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-12 08:07:30 +00:00
LaurentGom
1bf35973be
Synchronized with trunk
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1167 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-11 22:38:46 +00:00
LaurentGom
45b150648d
Changed internal naming convention (local variables now start with a lower case character)
...
Removed the AudioResource class
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1166 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-11 22:17:24 +00:00
LaurentGom
e3973714b2
FS#122 - Http::Response::GetField should be case insensitive
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1160 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-10 12:01:51 +00:00
LaurentGom
06525907c1
FS#121 - Improve accuracy of rendering
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1157 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-04 19:20:13 +00:00
LaurentGom
e2ddadb395
Fixed ending slash not added to a Http::Request URI when specified in the constructor
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1156 4e206d99-4929-0410-ac5d-dfc041789085
2009-07-04 16:44:36 +00:00
LaurentGom
7cc00085d8
Added viewport handling in sf::View
...
Upgraded SFML.Net project files to VS2008
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1155 4e206d99-4929-0410-ac5d-dfc041789085
2009-06-26 13:24:29 +00:00
LaurentGom
1bb96087ad
FS#10 - Add rotation to sf::View
...
Slightly changed the public interface of sf::View
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1152 4e206d99-4929-0410-ac5d-dfc041789085
2009-06-21 21:23:30 +00:00
LaurentGom
5978d015eb
Synchronized with trunk
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1151 4e206d99-4929-0410-ac5d-dfc041789085
2009-06-19 09:36:49 +00:00
LaurentGom
f04086c72b
FS#118 - Add "Connection: close" by default for HTTP 1.1 requests
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1148 4e206d99-4929-0410-ac5d-dfc041789085
2009-06-18 16:13:42 +00:00
LaurentGom
e4042e8b4f
FS#117 - Fix POST requests not working with sf::Http
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1147 4e206d99-4929-0410-ac5d-dfc041789085
2009-06-18 10:34:11 +00:00
laurentgom
9342dc77bb
Added the Linux P-Buffer implementation (WIP)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1146 4e206d99-4929-0410-ac5d-dfc041789085
2009-06-17 08:49:20 +00:00
laurentgom
0ad6295ff4
Fixed the Linux makefile of the Qt sample
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1145 4e206d99-4929-0410-ac5d-dfc041789085
2009-06-17 07:55:46 +00:00
laurentgom
470963326e
Fixed Linux makefile
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1144 4e206d99-4929-0410-ac5d-dfc041789085
2009-06-17 07:40:22 +00:00
ceylo
4af909c207
Fixed issue with beep produced by Esc and functions keys.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1142 4e206d99-4929-0410-ac5d-dfc041789085
2009-06-14 14:36:11 +00:00
laurentgom
ab580aa35b
PostFx::SetTexture now takes a const sf::Image*
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1141 4e206d99-4929-0410-ac5d-dfc041789085
2009-06-14 11:00:48 +00:00
laurentgom
e6483d2165
Added initialization of GLEW in sf::Drawable (for glBlendFuncSeparate)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1140 4e206d99-4929-0410-ac5d-dfc041789085
2009-06-14 06:47:25 +00:00
laurentgom
b86c4627ab
Added functions and overloads to sf::Rect
...
Slightly changed the sf::View interface
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1138 4e206d99-4929-0410-ac5d-dfc041789085
2009-06-13 21:13:43 +00:00
laurentgom
92e79b8123
Fixed blending functions so that alpha is properly forwarded when rendered to a RenderImage
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1137 4e206d99-4929-0410-ac5d-dfc041789085
2009-06-13 19:09:02 +00:00
laurentgom
0704e242c0
Disabled smoothing on RenderImage's underlying images
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1136 4e206d99-4929-0410-ac5d-dfc041789085
2009-06-13 07:57:42 +00:00
laurentgom
2deb8bd021
Added RenderImage
...
Cleaned internal CSFML code
Synchronized with trunk
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1135 4e206d99-4929-0410-ac5d-dfc041789085
2009-06-11 15:49:36 +00:00
laurentgom
42c5800d4c
FS#88 - Replace Set/GetCenter with Set/GetOrigin in sf::Drawable
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1121 4e206d99-4929-0410-ac5d-dfc041789085
2009-06-01 15:58:13 +00:00
laurentgom
f624f16350
Fixed windows' context not activated by default after their creation
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1119 4e206d99-4929-0410-ac5d-dfc041789085
2009-06-01 13:41:38 +00:00
laurentgom
d8dc34b199
Fixed Linux implementation of ContextGL and ThreadLocalImpl
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1117 4e206d99-4929-0410-ac5d-dfc041789085
2009-05-31 11:53:28 +00:00
laurentgom
23bf546b6a
FS#84 - Rewrite the OpenGL context handling
...
FS#66 - Free the global rendering context
Added thread-local storage classes
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1116 4e206d99-4929-0410-ac5d-dfc041789085
2009-05-31 11:38:54 +00:00
laurentgom
520169fdc6
tagged version 1.5, trunk is now version 1.6
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1113 4e206d99-4929-0410-ac5d-dfc041789085
2009-05-28 16:05:07 +00:00
laurentgom
05259e95de
Updated copyrights again
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1109 4e206d99-4929-0410-ac5d-dfc041789085
2009-05-28 15:41:18 +00:00
ceylo
6e09596e70
Added user notice about antialiasing issues.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1102 4e206d99-4929-0410-ac5d-dfc041789085
2009-05-28 14:10:28 +00:00
ceylo
cb511644db
Fixed problem with fullscreen/windowed display mode. Added check for Cocoa window import.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1094 4e206d99-4929-0410-ac5d-dfc041789085
2009-05-21 15:07:33 +00:00
ceylo
40fd859590
Fixed crash with Cocoa window import.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1091 4e206d99-4929-0410-ac5d-dfc041789085
2009-05-17 12:10:16 +00:00
laurentgom
cb0f429167
FS#111 - Fixed joysticks sometimes not working at all on Vista
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1090 4e206d99-4929-0410-ac5d-dfc041789085
2009-05-13 18:12:33 +00:00
laurentgom
494c8e6d0f
FS#110 - Fixed 1 pixel offset in Sprite::GetPixel when FlipX or FlipY is set
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1088 4e206d99-4929-0410-ac5d-dfc041789085
2009-05-08 09:58:07 +00:00