Commit graph

488 commits

Author SHA1 Message Date
Jan Haller fcb05fb975 Added SFML_DEPRECATED macro for cross-platform class/function deprecation 2015-10-19 17:39:38 +02:00
bumbar1 3a12fc6505 Added optional argument on which address to bind (socket). 2015-10-10 16:46:33 +02:00
Alec Iverson ecede1119a Fixed small typo in setActive \brief 2015-09-30 08:17:18 +02:00
Renaud Durlin aa4f0681db Fix typo in comment 2015-09-30 08:15:26 +02:00
Marco Antognini 2d1fab374f Added SoundSource::operator= and called it from Sound::operator=
Signed-off-by: Jan Haller <bromeon@gmail.com>
2015-09-27 18:54:42 +02:00
binary1248 2752bbcfb0 Added methods to get the currently active context, query whether an OpenGL extension is available and query the actual OpenGL version of a context, made context switches during initialization of texture and shader static values unnecessary, fixed code style in loaders. 2015-09-21 20:29:55 +02:00
Maximilian Wagenbach b7d7ac44f3 Added support for 24-bit .wav files. 2015-09-20 23:10:14 +02:00
Marco Antognini 1b2c50a0d8 Fixed documentation for MemoryInputStream and FileInputStream 2015-09-13 11:57:04 +02:00
Lukas Dürrenberger 01d72438de Increased version to 2.3.2 and add changes to changelog. 2015-08-24 18:01:06 +02:00
Lukas Dürrenberger 506ec95fde Fixed a typo of the example in the font header. 2015-08-24 13:10:18 +02:00
Matthew Szekely f6020c5f8e Fixed RenderTexture::clear() not always working on certain hardware 2015-08-04 10:08:18 +02:00
Lukas Dürrenberger b735777c4a Increased version to 2.3.1. 2015-06-27 13:40:35 +02:00
Jan Haller 6de027f198 Clarified lifetime requirements of underlying resources for Music and Font 2015-06-04 21:06:54 +02:00
Jan Haller 6cec972338 Removed unnecessary sf:: prefixes 2015-05-20 17:30:23 +02:00
Juhani Numminen 1b1d92d6bb Fix function name in short example snippet in RenderStates.hpp 2015-05-20 16:37:32 +02:00
Lukas Dürrenberger 80214d1cb9 Increased version to 2.3, updated the changelog and license and added Mario to the readme.txt. 2015-05-03 21:53:53 +02:00
Jan Haller 947427cb8d Clarified semantics of Shape::getGlobalBounds(), improved related documentation 2015-05-03 14:51:44 +02:00
Jan Haller e0174545e6 Fixed Color::toInteger() not being const-qualified 2015-04-28 21:44:31 +02:00
binary1248 17570c324e Bumped back the sfml-graphics OpenGL version requirement to 1.1. Everything beyond 1.1 functionality is optional, with warnings emitted when necessary. 2015-04-15 02:56:31 +02:00
binary1248 e80bf0ba92 Fix whitespace: Convert tabs to spaces and remove trailing whitespace. 2015-04-15 01:53:43 +02:00
Marco Antognini 075d7b3b50 Made FileInputStream non copyable 2015-04-15 01:32:26 +02:00
Jan Haller 22c9674389 Combined separate horizontal/vertical mouse wheel event types
Instead of separate Event::MouseWheel{Vertical,Horizontal}Moved events, a single Event::MouseWheelScrolled event is used for all wheel-related events.
The new Mouse::Wheel enum is used to differentiate between mouse wheels.
2015-04-07 00:24:52 +02:00
Lukas Dürrenberger 3d0ab05e7b Added missing includes in the general headers. 2015-04-02 18:52:27 +02:00
Lukas Dürrenberger 0b221921ed Switched to the stdio FILE* API for handling streams to provide the expected behavior to Vorbis. 2015-04-01 13:19:47 +02:00
binary1248 c17486857f Implemented methods to retrieve the OpenGL handles from sf::Texture and sf::Shader. 2015-03-23 16:16:07 +01:00
binary1248 e2420dfe76 Removed support for GLU. 2015-03-23 16:16:06 +01:00
binary1248 c30a3da8d5 Moved platform OpenGL loading code into their respective context implementations. 2015-03-23 16:10:30 +01:00
binary1248 3e397bff4b Replaced GLEW with (a highly customized) loader generated by glLoadGen, restructured GLExtensions.hpp for easier extension bookkeeping, make use of GLEXT definitions in Shader.cpp and Texture.cpp as well, replaced GL_MAX_TEXTURE_COORDS with GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, implemented flags for requesting a debug or core/compatibility profile context, changed the default context version from 2.0 to 2.1. 2015-03-23 16:10:28 +01:00
binary1248 e17cc520d6 Implemented support for horizontal mouse wheel scrolling as well as high-precision scrolling on Windows and OS X. 2015-03-16 10:35:34 +01:00
Oleh Prypin 01d5d1b463 Replaced non-ASCII symbols with equivalents 2015-03-10 02:04:02 +02:00
Marco Antognini aa9a6dec89 Fixed a few typos/style issues 2015-03-09 10:47:20 +01:00
Marco Antognini 0c2f306c17 Updated copyright year and Laurent's email address 2015-03-04 09:36:25 +01:00
Mario Liebisch 3424467896 Android: Restored old file reading behavior for audio stuff 2015-03-04 09:36:21 +01:00
Marco Antognini 1d24b52220 Silenced some warnings 2015-03-04 09:33:09 +01:00
Jonathan De Wachter 3fbfde39a5 Adjusted the new audio backends to compile on Linux 2015-03-04 09:33:06 +01:00
Laurent Gomila f0608eaed8 Redesigned the audio encoding/decoding classes to get rid of libsndfile 2015-03-04 09:33:03 +01:00
Zachariah Brown 1de7644277 Updated copyright year and Laurent's email address 2015-03-02 13:41:54 -05:00
binary1248 d790114df8 Added a way for partial sends over non-blocking TcpSockets to be handled properly. 2015-03-02 11:26:31 +01:00
Marco Antognini 67c7663c80 Added export to Joystick::Identification 2015-02-28 12:27:29 +01:00
Lukas Dürrenberger 1f2bc148fe Implemented sf::Color::toInteger() to complement the new sf::Color constructor. 2015-02-23 11:38:49 +01:00
FRex 88ec48cb85 Added a new constructor that takes single Uint32 to Color 2015-02-23 11:38:48 +01:00
Laurent Gomila 758735092e Improved the documentation of SFML-specific statuses in sf::Ftp 2015-01-03 23:47:15 +01:00
Lukas Dürrenberger d4e6b84afc Merge branch 'bugfix/al_context' 2014-12-30 10:44:08 +01:00
Jan Haller 1cfa5c6f1d Replaced unsigned int with std::size_t for array indices/sizes 2014-12-28 18:21:59 +01:00
binary1248 0ad401cc97 Made OpenAL context management more intelligent, in analogy to OpenGL context management. OpenAL contexts now only exist as long as AlResources require them and are destroyed when they are no longer required. Fixes #30. 2014-12-21 16:57:58 +01:00
Lukas Dürrenberger 1c46ec7c37 Updated the version to 2.2, added support for patch versions and added the changelog.txt 2014-12-04 16:09:54 +01:00
Jan Haller 0a64f50605 Further corrections of typos and dash inconsistences 2014-11-18 11:14:18 +01:00
Lukas Dürrenberger 45810a1345 Fixed additional comments and documention spelling mistakes. 2014-11-18 01:02:07 +01:00
Marco Antognini aef8f826f1 Fixed a few typos and improve some sentences in the documentation 2014-11-17 17:29:55 +01:00
Jan Haller 53e3409cbf Minor documentation fixes in sf::String 2014-10-26 11:07:46 +01:00
Jan Haller 4155b2e449 Changed Window::requestFocus() return type from bool to void
Reasons:
* Consistent with other sf::Window methods
* User can test whether focus succeeded by subsequent hasFocus() call
* Implementation would have to call hasFocus() anyway on some systems

Also: minor code style change in Window::hasFocus()
2014-10-06 22:21:44 +02:00
Jan Haller 6a24eb5eec Slightly adapted window focus documentation 2014-10-06 22:21:43 +02:00
Foaly b965ad198b Added window methods to request and to check focus
Signed-off-by: Stefan Schindler <stefan@boxbox.org>
Signed-off-by: Jan Haller <bromeon@gmail.com>
2014-10-06 22:21:42 +02:00
Laurent Gomila f99035bea1 Added support for 64-bit integers in sf::Packet 2014-10-06 13:26:28 +02:00
Stefan Schindler f24ca9a840 Source code changes.
* Changed newlines to \n.
* Removed whitespace before colons.
* Fixed several alignments.
2014-10-06 01:18:47 +02:00
binary1248 b27cbd5036 Fixed font glyphs always being 2 pixels larger than they are supposed to be in each dimension, fixed wrong underline offset with some fonts, offset underline and strike through by half of their thickness so their center is positioned correctly, changed glyph and font metrics to use floats instead of ints to support scaling better. 2014-10-02 23:30:58 +02:00
Lukas Dürrenberger ef1b9d6b20 Merge branch 'feature/strikethrough' 2014-08-19 23:02:21 +02:00
binary1248 6959c1a826 Added notes to documentation and adjusted OpenGL example as a workaround for the side effects of making static functions that require a context work. If the user wants to make use of both sfml-graphics and OpenGL, they should make sure sf::Texture::getMaximumSize() and/or sf::Shader::isAvailable() are called at least once before setting their final context active as those functions will cause a context switch the first time they are called. 2014-08-15 13:39:06 +02:00
Foaly 5f3b6cb57a Added a strikethrough text style to sf::Text. Fixes issue #243. 2014-07-18 13:57:57 +02:00
Laurent Gomila 337df1ea5f Merge branch 'master' of github.com:LaurentGomila/SFML 2014-07-11 17:43:50 +02:00
Laurent Gomila 8db958042e Improved documentation of SoundStream::onGetData (#650) 2014-07-11 17:43:18 +02:00
Lukas Dürrenberger e625d79a04 Merge branch 'bugfix/soundstream' 2014-07-07 09:44:45 +02:00
binary1248 74e425a9ed Made sure SoundStream adhered to its documented behavior, added a hint to SoundStream and Sound documentation regarding setting the offset while stopped. 2014-07-04 22:24:48 +02:00
Foaly 09aae0240d Fixed calling SoundStream::setPlayingOffset() unpausing a paused SoundStream (#203), guard m_isStreaming by a mutex, fixed calling SoundStream::pause() before the stream thread starts not properly pausing the stream (http://en.sfml-dev.org/forums/index.php?topic=15197.0), minor documentation fix in SoundStream. Signed-off-by: binary1248 <binary1248@hotmail.com> 2014-07-04 20:48:23 +02:00
binary1248 362a590454 Fixed FTP download and upload file sizes being limited by available RAM (#565). 2014-07-04 20:40:18 +02:00
Jan Haller 1851dcb109 Clarified Window::setIcon() ownership semantics 2014-07-03 14:08:13 +02:00
Patrick 86983acaa4 Fixed a typo in the comments of Context.hpp 2014-06-20 22:17:06 +02:00
binary1248 bdcdfffe11 Replaced Text underline offset/thickness with nicer font dependent values. 2014-06-12 00:49:23 +02:00
binary1248 da79517b36 Fix bitmap font resize failing silently when resizing to an unsupported pixel size (#448), fixed getKerning returning scaled values even for bitmap fonts. 2014-06-12 00:49:23 +02:00
Stefan Schindler 9690a7edee Fixed minor documentation issue. 2014-06-06 13:09:25 +02:00
firefly2442 749cbb2ff8 add HTTP support for PUT and DELETE
Signed-off-by: binary1248 <binary1248@hotmail.com>
2014-05-22 10:45:19 +02:00
Jan Haller cdf32a7881 Merge branch 'blendmodes'
Introduces the sf::BlendMode class that supports separate blend functions and equations.
Replaces the old sf::BlendMode enum.

Further changes:
* Fixed merge conflicts resulting from GLExtensions in mobile branch
* GLExtensions: Added GLEXT_blend_equation_separate
* Added file BlendMode.cpp
* Replaced occurrences of sf::BlendMode value parameters with const-references
* Adapted rendering code in sf::RenderTarget
2014-04-26 19:43:36 +02:00
James Cowgill b188814937 Fix Config.hpp so SFML compiles on Debian FreeBSD 2014-04-25 15:41:47 +01:00
Jan Haller 3a7b425fb7 Improved sf::Http documentation concerning HTTPS 2014-04-23 19:31:31 +02:00
Laurent Gomila f99bbfc534 Reviewed the sf::BlendMode class (added a constructor, made minor modifications in comments) 2014-04-22 21:37:39 +02:00
Laurent Gomila 80431deef4 Reviewed the sensor API 2014-04-20 12:58:50 +02:00
Laurent Gomila ffd4b71722 Fixed erroneous comments in the sf::Touch class documentation 2014-04-20 12:58:47 +02:00
Jonathan De Wachter 7daaaa649e Implemented sensor API 2014-04-20 12:58:13 +02:00
Jonathan De Wachter 45f23cdbbb Made the OpenGL ES implementation available on ARM-based Linux OSes 2014-04-20 12:58:00 +02:00
Jonathan De Wachter 634c3dc2a7 [Android] Fixed memory leak when loading asset files 2014-04-20 12:57:38 +02:00
Jonathan De Wachter 4626e95491 [Android] Fixed WindowHandle and getSystemHandle() 2014-04-20 12:57:23 +02:00
Laurent Gomila 2c409e5145 Added touch events and the sf::Touch class (and iOS implementation) 2014-04-20 12:56:53 +02:00
Jonathan De Wachter 60894d1c1a [Android] Rewrote CMake scripts to compile SFML with our new toolchain 2014-04-20 12:56:40 +02:00
Laurent Gomila 3872b27569 Reworked the sfml-main module, added Main.hpp, moved the main() internal entry point for iOS from sfml-window to sfml-main 2014-04-20 12:53:17 +02:00
Jonathan De Wachter 63bbe2c91e Added the Android port 2014-04-20 12:52:04 +02:00
Laurent Gomila d50f94ca97 Fixed render buffers not correctly resized on orientation changes 2014-04-20 12:48:02 +02:00
Laurent e5ee38fc26 Added the iOS port 2014-04-20 12:48:00 +02:00
Jan Haller e9243b7ef6 Improved documentation for sf::Shape and derived classes 2014-04-19 11:21:35 +02:00
Marco Antognini 49f2a76d93 Fixed a few glitches in the documentation 2014-04-15 20:18:19 +02:00
Jan Haller 666da801a1 Cached sf::Text attributes
Two optimizations:
- If a value remains the same, nothing happens
- Recompute geometry only before drawing and bound access, not after each set

Closes #413
2014-03-29 18:34:49 +01:00
Jan Haller 59e920cf10 Fixed several Doxygen warnings, limited input to *.hpp files 2014-03-29 12:42:13 +01:00
Jan Haller 1319a0a096 Improved Ftp::sendCommand() documentation 2014-03-29 11:54:20 +01:00
Jan Haller 2c5cab5454 Made Ftp::sendCommand() public 2014-03-28 13:38:19 +01:00
Jan Haller 50e3052773 Exposed up vector in sf::Listener API
Closes #545
2014-03-23 20:16:42 +01:00
Jan Haller 1fd6fae073 Minor improvements in sf::Ftp documentation 2014-03-22 14:41:46 +01:00
Jan Haller 9d5eb14dde Minor improvements in sf::Window and sf::RenderWindow documentation 2014-03-22 14:12:59 +01:00
Jan Haller ec494babbe Passed BlendMode objects by const-reference 2014-03-16 11:58:45 +01:00
Jan Haller 330db58bc1 Improved documentation 2014-03-16 11:54:32 +01:00
Jan Haller fab46cdfd7 Improved formatting 2014-03-16 10:50:27 +01:00
Jan Haller 75784dbb9a Omitted "Blend" prefix for nested BlendMode enums
BlendMode::Factor instead of BlendMode::BlendFactor
BlendMode::Equation instead of BlendMode::BlendEquation
2014-03-12 12:22:47 +01:00