Commit Graph

1930 Commits

Author SHA1 Message Date
Marco Antognini
c98a84a5d8 Update OpenAL-soft for OS X to version 1.17.2
Build script: https://gist.github.com/mantognini/05460d9b6a8a272ed188
2016-04-14 09:04:53 +02:00
Maximilian Wagenbach
1ee6d1dbc6 Make sure the recording thread in sf::SoundRecorder is stopped before sf::SoundBufferRecorder is destroyed.
Fixes a "pure virtual method called" crash.
Also updated the documentation and the VoIP example.
2016-04-10 22:51:37 +02:00
binary1248
e00d160224 Add support for sRGB capable framebuffers. (#175) 2016-03-10 10:08:17 +01:00
Marco Antognini
c4956857fa Added missing <iterator> include in String.hpp
This include is required for std::back_inserter.
2016-03-09 08:24:22 +01:00
binary1248
3ff1d251a8 Fixed issues reported by Coverity Scan static analysis (run using Linux build configuration). 2016-03-08 09:42:47 +01:00
Bruno Van de Velde
23ea17eab7 Assign value to m_stream in Font::operator= on android 2016-03-04 09:20:06 +01:00
Bruno Van de Velde
e77e680cad Initialize Font::m_stroker 2016-03-04 09:20:05 +01:00
Jan Haller
77609e166a Added SFML_GENERATE_PDB CMake option; check CMake version dynamically 2016-03-01 17:14:21 +01:00
Jan Haller
2bd897c513 Create and install PDB debug symbols alongside binaries 2016-03-01 17:14:20 +01:00
Mario Liebisch
687f260a46 Android: No longer try to free the native activity when toggling the virtual keyboard 2016-03-01 10:29:08 +01:00
Stefan Schindler
b61502b69a Exporting some Glsl utility functions due to linking issues. (#1044) 2016-03-01 08:16:57 +01:00
Maximilian Wagenbach
c78c8106da Fixed seeking in multi channel FLAC files.
Updated seek() documentation.
2016-02-22 23:43:34 +01:00
frex
698bbccd6a Made WAV file reader no longer assume that data chunk goes till end
of file to prevent reading trailing metadata as samples.
2016-02-22 18:37:05 +01:00
Mario Liebisch
499eb09642 Android: Copy the selected EGL context's settings to SFML 2016-02-22 17:32:56 +01:00
Glenn Smith
fe9b9c0cc7 Use kCGMouseButtonLeft instead of 0 for CGEventCreateMouseEvent to fix a compiler error 2016-02-19 20:57:00 +01:00
binary1248
043fb83cd8 Rewrite RenderWindow::capture to make use of a single texture transfer instead of transferring each row of the framebuffer individually. 2016-02-19 17:30:22 +01:00
Mario Liebisch
146f63874a Added a geometry shader effect to the Shader example 2016-02-18 20:20:43 +01:00
Mrowqa
1763861b26 Added support for geometry shaders 2016-02-18 20:20:43 +01:00
Lukas Dürrenberger
1217699fe0 Added the missing -s postfix for the RelWithDebInfo config. 2015-12-31 11:13:58 +01:00
Zachariah Brown
957cabb816 Added support for outlined text 2015-12-31 10:41:59 +01:00
Krozark
7ff9478061 add a new BlendMode::Equation : ReverseSubtract 2015-12-03 00:28:32 +01:00
Lukas Dürrenberger
63fba49d96 Fixed some initialization issues reported by Cppcheck. 2015-11-20 15:36:48 +01:00
Marco Antognini
0df97b4813 Updated platform-specific handle documentation 2015-11-06 18:24:42 +01:00
Marco Antognini
127bc77497 Fixed encoding of UTF-16
As per http://en.sfml-dev.org/forums/index.php?topic=19223.0
2015-11-02 00:21:01 +01:00
Jan Haller
9c5c750e60 Added new methods to set uniforms in sf::Shader
Implements a new design for the shader uniform API.
* Added Shader::setUniform() and Shader::setUniformArray() overloads for the following types:
  -> scalars: float, int, bool
  -> vectors: 2D, 3D, 4D
  -> matrices: 3x3, 4x4
  -> arrays of basic types
  -> samplers (sf::Texture)
  -> conversions for SFML types (sf::Transform, sf::Color)
* Added sf::Glsl namespace with GLSL-equivalent types
* Deprecated Shader::setParameter() overloads

Other related changes:
* Refactored sf::Shader internals to avoid code duplication
* Improved documentation
* Added SFML_DEPRECATED macro to Doxyfile
* Defined _SCL_SECURE_NO_WARNINGS to disable std::copy() warnings on MSVC
2015-10-21 10:29:07 +02:00
Jan Haller
fcb05fb975 Added SFML_DEPRECATED macro for cross-platform class/function deprecation 2015-10-19 17:39:38 +02:00
Marco Antognini
d4683692e0 Fixed crash when resizing a window to a zero-height/width size (#984) 2015-10-14 12:16:40 +02:00
bumbar1
3a12fc6505 Added optional argument on which address to bind (socket). 2015-10-10 16:46:33 +02:00
Lukas Dürrenberger
6b9781475d Added support for VS 2015. 2015-09-30 08:32:30 +02:00
Marco Antognini
f80f501885 Update Xcode template material 2015-09-30 08:19:12 +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
binary1248
811dfe1cf7 Added support for pbuffers on Windows and Unix. 2015-09-27 19:52: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
Marco Antognini
0c9ce3bef3 Improved memory management on OS X (related to #790) 2015-09-25 16:19:52 +02:00
binary1248
c4be28bd0f Changed the GlxContext implementation to always try to use glXCreateContextAttribsARB if it is available (was already done in the WGL implementation), specification of the context version attributes now only takes place when a context version greater than 1.1 is requested, requesting version 1.0 or 1.1 (default) will hint the driver to provide the most recent context version they support. 2015-09-22 00:56:27 +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
binary1248
221e0700f7 Added NvOptimusEnablement and AmdPowerXpressRequestHighPerformance exports to sfml-main to inform the driver that the SFML application could benefit from using the discrete GPU in a multi-GPU environment. 2015-09-18 10:13:32 +02:00
Mario Liebisch
4f3c26660e Android: Accept touch events from "multiple" devices
Attempt to fix issue #953, although I can't really say whether this is
indeed some driver thing. All snippets I've found use exact comparison
only (usually switches).
2015-09-18 08:53:34 +02:00
Marco Antognini
1b2c50a0d8 Fixed documentation for MemoryInputStream and FileInputStream 2015-09-13 11:57:04 +02:00
Lukas Dürrenberger
58643d78f9 Merge branch '2.3.x' 2015-09-10 17:29:01 +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
Ferdinand Thiessen
c55b8c17e1 Fixing #935: Secure function against random data return. 2015-08-24 13:52:49 +02:00
Ferdinand Thiessen
0f1dc5a754 Fixing #935: Secure function against random data return. 2015-08-24 13:46:38 +02:00
Lukas Dürrenberger
df8260a1c4 Fixed a typo of the example in the font header. 2015-08-24 13:37:49 +02:00
Jan Haller
64ddb10f3d Improved diagnostic output for glCheck and alCheck macros
Changes:
* In addition to source file and line, the expression itself is output
* For better readability, the log is split across multiple lines
* alCheck() doesn't unnecessarily construct std::string when there is no error
* Unused #include directives are removed
2015-08-24 13:36:30 +02:00
Jan Haller
b7d984cdac Made implementation of glCheck and alCheck macros more robust
At the moment, glCheck(...) and alCheck(...) look like a function calls, which is misleading and can cause subtle bugs, for example when used in if statements. This change mitigates the situation by allowing those expressions to be used as single statements within if/else branches.

Initializations of OpenGL handles that previously involved glCheck() calls now need to be split into separate declaration and assignment.
2015-08-24 13:36:19 +02:00
Alexander Ankudinov
18193a5cde Fix FindSFML.cmake can't find SFML 2.1 2015-08-24 13:36:04 +02:00
Lukas Dürrenberger
506ec95fde Fixed a typo of the example in the font header. 2015-08-24 13:10:18 +02:00