SmallJoker
b6a23b1bcc
CGUITTFont: Clean up, unify and comment draw code ( #16380 )
...
These changes were initially made to improve performance. However,
on modern hardware, these changes turned out to make no difference.
This commit unifies the calculations in 'draw' and 'getDimension' and
adds comments to make it more understandable.
2025-09-10 20:23:45 +02:00
Lucas OH
ce2380b58e
Include header files in CMake sources ( #16297 )
2025-07-12 13:23:35 +02:00
Lars Müller
61551cfc3a
Remove irr namespace ( #16309 )
2025-07-09 10:35:52 +02:00
sfan5
03affa1bbb
Some minor code cleanups
2025-04-08 22:24:37 +02:00
Lars Müller
547e1476bb
Allow overriding fonts via media files ( #15606 )
...
Co-authored-by: sfan5 <sfan5@live.de >
2025-01-19 20:42:40 +01:00
sfan5
c49ff76955
IGUIFont / CGUITTFont code cleanups ( #15581 )
2024-12-23 12:49:47 +01:00
Lars Müller
fef28aced9
Irrlicht: Get rid of obsolete setDebugName ( #15541 )
...
Co-authored-by: sfan5 <sfan5@live.de >
2024-12-14 17:03:08 +01:00
sfan5
58ccf0ba82
Fix some smaller issues with texture/image handling
2024-11-16 16:54:22 +01:00
sfence
d849d51c2d
Replace licensing text in headers (LGPLv2.1) ( #15321 )
2024-10-28 15:57:39 +01:00
DS
e5d321d286
Cleanup headers in irr/include/ ( #15181 )
2024-10-18 10:58:32 +02:00
ALi.w
f2ab887644
Fix getDimension throwing error if there is \r at end of line ( #15299 )
2024-10-17 19:39:11 +02:00
grorp
70e169f165
Drop fixed pipeline lighting stuff ( #15165 )
2024-09-18 12:18:28 +02:00
sfan5
19a58745c9
Avoid copies when working with EnrichedString
2024-08-28 15:38:02 +02:00
Lars Müller
5c187363b2
Fix some clang compiler warnings ( #14654 )
...
* Fix some clang compiler warnings
* Get rid of sdl_supports_primary_selection
* Fix draw2DImage hiding overloaded virtual function
2024-05-15 19:56:25 +02:00
sfan5
5280863300
Set VBO hints in more places
2024-02-29 17:20:49 +01:00
sfan5
e3cc26cb7c
Irrlicht support changes ( #14383 )
2024-02-19 21:14:47 +01:00
sfan5
61d0f613df
Hand roll UTF-16 conversion in CGUITTFont ( #14121 )
2023-12-19 20:18:43 +01:00
Caleb Butler
3a4bf14c20
Replace all core::unicode::ustring with std::u32string ( #13775 )
2023-10-02 13:43:38 +02:00
Desour
d75c956dbc
Remove ugly hack in static_text.h
...
Just use the root element, like GUIButton:add().
2023-08-14 18:13:47 +02:00
Gregor Parzefall
307e380f30
Refactor the way you set material properties
...
Instead of using SMaterial::setFlag, you now set them directly on SMaterial or SMaterialLayer.
2023-07-20 22:15:47 +02:00
Gregor Parzefall
3552537fc4
Fix that transparent text still draws a text shadow ( #13649 )
...
Makes fade out animations of text more pleasant to look at.
2023-07-17 20:45:56 +02:00
numzero
de77fe8ade
Allow printing irr::core::vector[23]d directly to an std::ostream
2023-06-26 22:51:32 +02:00
numzero
d6be6682ec
Drop dependency on IrrCompileConfig
...
The only remaining thing is IRRLICHT_SDK_VERSION via irrlicht.h
2023-03-01 09:06:23 +01:00
sfan5
3bafbaac49
Remove dead code behind Irrlicht version checks
2023-02-18 16:46:51 +01:00
Abdou-31
d1b80b462e
Fix typos and en_US/en_GB inconsistency in various files ( #12902 )
2022-11-09 11:57:19 -05:00
Nathanaël Courant
622d857bed
Update my name
2022-06-16 21:38:32 +02:00
paradust7
2742fef458
Fixes needed to use irrArray backed by std::vector ( #12263 )
2022-05-22 00:11:49 +02:00
paradust7
273bfee9a1
Use std::map instead of core::map ( #12301 )
2022-05-18 12:31:49 +02:00
ShadowNinja
7993909fab
Spacing fixes
2022-04-08 14:55:21 +01:00
sfan5
76dbd0d2d0
Fully remove bitmap font support ( #11863 )
...
Freetype is now a build requirement.
2022-01-08 14:53:25 +01:00
ROllerozxa
05573d6d8d
Remove unused (de)serializeAttributes() methods
2021-12-29 23:00:16 +01:00
sfan5
3e2145d662
Fix two CMake build issues
...
* PostgreSQL fallback code missed the includes (closes #11219 )
* build failed when Freetype enabled but not found
2021-04-21 20:26:43 +02:00
sfan5
024d47e0d3
CGUITTFont optimizations ( #11136 )
2021-04-02 00:20:16 +02:00
sfan5
1e4913cd76
Irrlicht support code maintenance
2021-03-31 13:15:47 +02:00
sfan5
8d89f5f0cc
Replace fallback font nonsense with automatic per-glyph fallback ( #11084 )
2021-03-29 19:55:24 +02:00
Loic Blot
298bb3d8f7
Drop irrUString from MT, it's owned by irrlicht now
2021-03-26 20:58:45 +01:00
Jean-Patrick Guerrero
66b5c08664
Fix deprecated calls with Irrlicht 1.9
2021-03-16 23:27:15 +01:00
sfan5
3579dd2186
Restore Irrlicht 1.9 support
2021-03-09 21:53:17 +01:00
sfan5
0f74c7a977
Fix double free caused by CGUITTFont code
...
This partially reverts commit 2072afb72b .
fixes #10920
2021-02-06 13:34:56 +01:00
k.h.lai
2072afb72b
Fix memory leak detected by address sanitizer ( #10896 )
2021-02-02 20:56:24 +01:00
sfan5
74762470b2
Fix some minor code issues all over the place
2020-12-24 13:44:54 +01:00
SmallJoker
4eb3baa51e
StaticText: Reset background on EnrichedString change ( #9340 )
...
This also fixes the F6 profiler background color -> now controlled by EnrichedString
2020-02-01 20:41:32 +01:00
SmallJoker
1892ff3c0d
StaticText/EnrichedString: Styling support ( #9187 )
...
* StaticText/EnrichedString: Styling support
* Fix tooltip fg/bgcolor
* Fix default color for substr(), add unittests
2020-01-22 19:09:11 +01:00
Hugues Ross
9284313d17
Refactor to centralize GUIButton styling/rendering code ( #9090 )
2019-12-09 20:06:51 +00:00
Pierre-Yves Rollo
72416a6a1f
Formspec: add hypertext element
2019-11-03 11:45:33 +01:00
SmallJoker
233cb86e86
Clean up and fix freetype=false crashes ( #8641 )
...
A IGUIFont of type bitmap/vector cannot be converted to CGUITTFont
Fixes various segfaults in gameplay
Shorter font cache code, cleaned up (?)
2019-08-06 21:33:13 +02:00
Loïc Blot
02a23892f9
LINT fixes since recent tooling update
2019-03-14 12:30:13 +01:00
Loïc Blot
a6a04c4b5b
Update our tooling (Clang 5 -> 7, GCC 7 -> 8)
...
This change permits to use up-to-date compilers, clang-tidy and
clang-format
It also refactor the tidy/format step to drop the binary selection from
scripts and perform it directly in travis
2019-03-14 12:30:13 +01:00
rubenwardy
38f6e7a198
Fix cast from const by accessing string data directly ( #8354 )
...
Fixes #8327
2019-03-12 08:58:02 +01:00
Leonid Bobrov
339341ba4e
DragonFly BSD is somewhat identical to FreeBSD ( #8159 )
2019-02-03 09:53:54 +01:00