Commit graph

45 commits

Author SHA1 Message Date
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
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
Maximilian Wagenbach c24de5fcaf Fix for broken text when the font is reloaded. 2018-01-17 00:48:38 +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
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
Zachariah Brown 957cabb816 Added support for outlined text 2015-12-31 10:41:59 +01:00
Jan Haller 947427cb8d Clarified semantics of Shape::getGlobalBounds(), improved related documentation 2015-05-03 14:51:44 +02:00
binary1248 e80bf0ba92 Fix whitespace: Convert tabs to spaces and remove trailing whitespace. 2015-04-15 01:53:43 +02:00
Zachariah Brown 1de7644277 Updated copyright year and Laurent's email address 2015-03-02 13:41:54 -05: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
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
Foaly 5f3b6cb57a Added a strikethrough text style to sf::Text. Fixes issue #243. 2014-07-18 13:57:57 +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
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 12d81304e6 Updated copyright year to 2014 2014-02-06 20:08:26 +01:00
Jan Haller e074b6775e Added documentation note on coordinates and undistorted rendering 2014-02-05 22:28:06 +01:00
Laurent Gomila 4e8c144879 Updated the year in the copyright notice 2013-04-06 09:34:44 +02:00
Laurent Gomila 5c46daacd4 Fixed sf::Text constructor declaration (no longer explicit) and the API documentation 2013-03-15 08:13:00 +01:00
Laurent Gomila a0c1f5f50f Removed the built-in default font 2012-08-04 00:08:14 +02:00
Laurent Gomila e3261f0430 Corrections in API documentation 2012-07-14 17:26:21 +02:00
Laurent Gomila d592b2a7d1 Updated the copyright text 2012-03-13 18:37:34 +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
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 c2c924f512 Minor fixes in comments 2012-01-29 11:39:29 +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 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
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
Laurent Gomila 017ef652f9 Removed the Resource and ResourcePtr classes 2011-11-05 15:50:44 +01:00
LaurentGom 0444781a4b Improved tags for doxygen documentation (added relations between free functions and classes, grouped classes into modules)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1535 4e206d99-4929-0410-ac5d-dfc041789085
2010-07-22 21:45:58 +00:00
LaurentGom aaf080368b Fixed header <iterator> missing in the voip sample
Minor additions to the API documentation of the drawable classes

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1520 4e206d99-4929-0410-ac5d-dfc041789085
2010-05-13 11:00:29 +00:00
LaurentGom 073e7864ef Updated the API documentation of the graphics module
sf::Image now uses GL_CLAMP_TO_EDGE instead of GL_CLAMP (removes black border when the image is smooth)

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1511 4e206d99-4929-0410-ac5d-dfc041789085
2010-04-20 11:10:34 +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 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 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
Renamed from include/SFML/Graphics/String.hpp (Browse further)