Commit Graph

1055 Commits

Author SHA1 Message Date
Georg Hagen
e9a1c629d9 Switch to more compact TextGlyph vertex format 2025-01-05 02:05:10 +01:00
Georg Hagen
47a904f572 Move GetDefaultShader logic into function 2025-01-04 21:16:08 +01:00
Georg Hagen
c0e85d4fba Add vertex buffer step mode config 2025-01-04 20:58:49 +01:00
Georg Hagen
6ccef62ad3 Add VertexBuffer class 2025-01-04 20:58:22 +01:00
Georg Hagen
53555b6788 Merge branch 'master' into pfm_pnm 2025-01-04 16:54:16 +01:00
Vladyslav Baranovskyi
295468358f Moved header structs and some methods to cpp files, reading pnm images upside-down 2025-01-04 14:27:28 +02:00
Georg Hagen
fad309d96d Move FreetypeHelper and cleanup glyph creation 2025-01-04 11:59:13 +01:00
Georg Hagen
994ae12b80 Remove branching 2025-01-04 11:42:09 +01:00
Georg Hagen
ca93036f31 Change TextDrawable base class 2025-01-04 03:08:06 +01:00
Georg Hagen
94025c79c6 Unify text shader handling 2025-01-04 02:46:24 +01:00
Georg Hagen
bc78af70e8 Fix bugs introduced by refactoring 2025-01-04 02:45:46 +01:00
Georg Hagen
884949f92f Deduplicate Atlas validity checking 2025-01-04 02:02:14 +01:00
Georg Hagen
f156ff5892 Update fallback glyph handling 2025-01-04 01:52:41 +01:00
Georg Hagen
f124a22910 Cleanup duplicated text shader 2025-01-04 01:52:11 +01:00
Georg Hagen
519be60c8c Fix String::Trim 2025-01-04 01:31:13 +01:00
Georg Hagen
207d02aab4 Remove redundant lambda, use initializer, add nodiscard 2025-01-04 01:25:04 +01:00
Georg Hagen
d96ced96c0 Deduplicate shader creation function for text drawable 2025-01-04 01:15:25 +01:00
Georg Hagen
c288f3ccba Remove redundant namespaces 2025-01-04 01:05:31 +01:00
Georg Hagen
54441024b3 Delete duplicated variable 2025-01-04 01:02:37 +01:00
Georg Hagen
d9763768e8 Add operator 2025-01-04 00:53:17 +01:00
Georg Hagen
0e21159888 Use AABB grow instead of custom function 2025-01-04 00:53:08 +01:00
Georg Hagen
61fa1546a0 Use same shader instance for all labeldrawables 2025-01-03 22:23:24 +01:00
ohyzha
9ff67815d0 code refactoring 2025-01-03 14:13:51 +02:00
ohyzha
cfb613d6bb implement tight atlas packing 2025-01-03 12:17:28 +02:00
ohyzha
e789c569db fix image loader bug where rows and cols were misinterpreted 2025-01-03 12:17:28 +02:00
Georg Hagen
757b3b8d3c Fix window content scale not set correctly 2024-12-31 15:00:33 +01:00
Georg Hagen
8b7f536442 Update formatting 2024-12-31 11:43:45 +01:00
ohyzha
0dd0532775 rename main sdf class for convenient synonym names 2024-12-31 12:15:15 +02:00
ohyzha
43842d6ece move stb zlib compressor to extensions folder 2024-12-31 12:14:32 +02:00
ohyzha
8d389db50c some more refactoring and improvements 2024-12-31 10:15:00 +02:00
ohyzha
e8289c643b code refactoring 2024-12-31 10:14:59 +02:00
ohyzha
503e31947f make font atlas generator interface more uniform and implement bitmap font atlas rendering and generation 2024-12-31 10:14:59 +02:00
ohyzha
7200166d99 support file reading from string literal 2024-12-31 10:14:59 +02:00
ohyzha
3cf6d17485 add filter for OpenVulkano sources 2024-12-31 10:14:59 +02:00
Georg Hagen
ce7aeab0b0 Remove debug logging 2024-12-30 23:20:18 +01:00
Georg Hagen
e59242265c Fix offset 2024-12-30 21:35:30 +01:00
Georg Hagen
c858744d44 Add constants over hardcoded values 2024-12-30 21:18:53 +01:00
Georg Hagen
a290bcf11b Add AXIS_TAP_X_ABS & AXIS_TAP_Y_ABS 2024-12-30 21:17:35 +01:00
Georg Hagen
c24c3ca86f Some slight cleanup for KTX image loader 2024-12-25 17:42:38 +01:00
Vladyslav Baranovskyi
7ea6edf5d0 PNM image loader + tests 2024-12-24 21:54:20 +02:00
Vladyslav Baranovskyi
4d6cba0afd PFM image loader + tests 2024-12-24 21:47:24 +02:00
ohyzha
5852aac273 minor refactoring 2024-12-22 13:54:01 +02:00
ohyzha
d2811bc9b1 fix linux build again 2024-12-21 17:43:17 +02:00
ohyzha
d3750f2b8a code review refactoring 2024-12-21 17:19:01 +02:00
ohyzha
9d6756bbad rename files 2024-12-21 17:19:01 +02:00
ohyzha
f66ae66234 implement appended zip loader for executable 2024-12-21 17:19:01 +02:00
ohyzha
40d2a3ff8e add possibility to explicitly specify archive type for ArchiveReader 2024-12-21 17:19:01 +02:00
ohyzha
c24ef36392 add zip resource and new test 2024-12-21 17:19:01 +02:00
ohyzha
56c3b81fe4 fix ODR violation 2024-12-21 17:19:01 +02:00
Vladyslav Baranovskyi
b37b8dc639 Introduced static variables in places where the return value is a plain string 2024-12-20 17:02:32 +02:00