Guillaume Bertholon
1f21e5497b
Control GL_FRAMEBUFFER_SRGB flag in RenderTarget
...
This fixes wrong rendering for RenderTexture that need sRGB encoding along a
non-sRGB window.
We cannot simply always enable GL_FRAMEBUFFER_SRGB because some drivers
enable sRGB encoding on non-sRGB window surfaces.
Also add a isSrgb() method to tell if a RenderTarget is encoding into
sRGB color space.
2021-05-11 16:52:55 +02:00
Guillaume Bertholon
05c83617de
Add Min and Max blend modes
2021-03-23 21:09:53 +01:00
Radek Dutkiewicz
88451a0740
Fixed naming convention mistakes
2021-02-11 00:40:30 +01:00
Radek Dutkiewicz
84e0a25e04
Fixed unnecessary loadGlyph() calls
...
getKerning() now passes the bold flag to getGlyph() function, so already cached glyph can be used.
2021-02-11 00:40:30 +01:00
Radek Dutkiewicz
7a0c35c334
Added glyph position compensation after autohinting
...
This improves glyph spacing by subtracting glyph position deltas from glyph advance generated by forced autohinting
2021-02-11 00:40:30 +01:00
swordfatih
498d7ee79c
Update the copyright year to 2021
...
Just updating all the 2020 references to 2021. 😄
2021-01-06 20:21:36 +01:00
Arthur Caputo
129774877b
Implemented saveToMemory and saveImageToMemory.
2020-12-03 20:12:27 +01:00
Jonny Paton
59df9d0d88
Implement smoothing for fonts
2020-09-20 19:17:11 +02:00
Lukas Dürrenberger
9b596cc8d9
Update the copyright year to 2020
2020-09-12 19:34:34 +02:00
43187455e4
Added Font::hasGlyph()
2020-05-20 16:12:41 +02:00
Jan Haller
519e1f9572
Improve sf::Transform documentation
...
Clarifies order of combine() and equivalence of operations.
Closes #1608 .
2020-01-02 15:27:47 +01:00
Mario Liebisch
a1d4bc80c2
Changed Doxygen single-line comment format
...
Single line comments starting with `///` are interpreted by
Microsoft Visual Studio as documentation containing XML code.
Therefore single line comments starting with `///<` unfortunately
cause a parsing error, as IntelliSense will assume the `<` is the
start of an XML tag. This is not the case, but unfortunately,
IntelliSense will still complain about the following space
character rather than displaying the raw string. This commit alters
all such comments to start with `//!<` instead, which prevents the
issue.
This fixes issue #1622 .
2020-01-02 15:25:57 +01:00
Stefan Schindler
ca21695521
Added getPosition() and getSize() to sf::Rect<T>.
2019-09-03 09:45:24 +02:00
binary1248
81a1da6a59
Revert "Added a VertexBuffer implementation to all Drawables that were rendered via VertexArrays."
...
This reverts commit 4dfad062e4
.
2019-09-01 18:20:13 +02:00
binary1248
4dfad062e4
Added a VertexBuffer implementation to all Drawables that were rendered via VertexArrays.
2019-02-19 10:05:59 +01:00
EpicCoder
489482a630
Updated the copyright year to 2019
2019-01-08 08:53:33 +01:00
binary1248
8554d210df
Ensure the proper default framebuffer is bound when activating a RenderWindow. Fixes #1471 .
2018-10-01 20:33:59 +02:00
Marco Antognini
b21039452e
Fixed a reference in the documentation of Shader
2018-05-06 08:42:42 +02:00
Mario Liebisch
1e800d9551
Android: No longer keep an active input stream longer than needed.
2018-04-14 09:59:01 +02:00
binary1248
0adde249ec
Optimized RenderTexture performance when using the FBO implementation by removing unnecessary context switches and flushing.
2018-04-14 09:54:59 +02:00
binary1248
421e8bb812
Added support for creation of a stencil attachment and multisampling to sf::RenderTexture.
2018-03-26 23:48:05 +02:00
Radek Dutkiewicz
deeb3a95f3
Fixed letter spacing being letter width dependent
2018-02-15 21:27:19 +01:00
Maximilian Wagenbach
5d7843c58a
Updated the copyright year to 2018.
2018-02-10 14:51:46 +01:00
Maximilian Wagenbach
65d26be74d
Changed the implementation from offsets to factors.
2018-01-25 01:52:19 +01:00
Maximilian Wagenbach
73892dfa12
Updated sf::Text documentation and OpenGL example.
2018-01-25 01:47:55 +01:00
Maximilian Wagenbach
812dea70d0
Implemented line spacing in sf::Text.
2018-01-25 01:47:54 +01:00
Maximilian Wagenbach
9e2f2eb27f
Implemented letter spacing in sf::Text.
2018-01-25 01:47:54 +01:00
binary1248
61cdcd47ca
Added sf::VertexBuffer class.
2018-01-25 00:26:38 +01:00
Maximilian Wagenbach
c24de5fcaf
Fix for broken text when the font is reloaded.
2018-01-17 00:48:38 +01:00
binary1248
898c2350f7
Add equality comparison to sf::Transform and avoid uploading 64 bytes of data every time we want to reset the OpenGL matrix back to identity.
2017-10-12 20:41:05 +02:00
hobby8
973ac8ddcd
Skip glTexCoordPointer() call if not needed
2017-04-04 13:19:28 +02:00
binary1248
6b71456a55
Add methods to make use of GPU local texture data copying bypassing a roundtrip to the CPU and back, add sf::Texture::swap to enable swapping texture contents, fixed sf::Font::cleanup not shrinking its allocated pixel buffer storage when the user loads a new font using the same sf::Font object.
2017-03-02 14:36:21 +01:00
Fytch
4cde8bb69c
Corrected documentation
2017-02-28 12:30:24 +01:00
Lukas Dürrenberger
113152673a
Updated year in copyright notices to 2017.
2017-02-10 15:18:03 +01:00
binary1248
2df9abf341
Added missing setActive virtual method to sf::RenderTarget, added setActive calls to OpenGL example to demonstrate proper explicit context management.
2016-10-13 17:01:41 +02:00
Mischa Aster Alff
3d41e28e6a
Clarify documentation on Rect::contains function bounds
2016-10-01 13:21:38 +02:00
Marco Antognini
8df8493515
Fixed PrimitiveType documentation
2016-08-07 18:37:18 +02:00
Marco Antognini
ac50bf8648
Update copyright dates
...
For futur references:
List and inspect © to be updated
$ egrep '2007-[0-9]{4}' -r examples/ tools/ src/ include/ license.txt
Update all ©
$ egrep --null -l '2007-[0-9]{4}' -r examples/ tools/ src/ include/ license.txt | xargs -0 -P4 sed -i '' -E 's/^(.*)2007-[0-9]{4}(.*)$/\12007-2016\2/'
2016-08-05 16:20:39 +02:00
Marco Antognini
193e54773d
Fixed some typos
2016-06-14 23:12:43 +02:00
verrazano
afb8254b6d
Changed primitive types to be grammatically correct.
2016-06-05 22:58:27 +02:00
binary1248
259811d59c
Implemented support for explicit mipmap generation in sf::Texture and sf::RenderTexture. ( #123 )
2016-05-04 20:01:22 +02:00
Marco Antognini
9d70da3aaa
Fixed and silenced a few warnings
2016-04-14 12:26:40 +02:00
binary1248
e00d160224
Add support for sRGB capable framebuffers. ( #175 )
2016-03-10 10:08:17 +01:00
Stefan Schindler
b61502b69a
Exporting some Glsl utility functions due to linking issues. ( #1044 )
2016-03-01 08:16:57 +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
Mrowqa
1763861b26
Added support for geometry shaders
2016-02-18 20:20:43 +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
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
Alec Iverson
ecede1119a
Fixed small typo in setActive \brief
2015-09-30 08:17:18 +02:00