Henrik Rydgård and Claude Opus 5.5
dea182f1d8
Use one UI drop shadow for text and atlas images, fix Windows build
...
Text and the SVG button images are mixed on screen, so they now share
UIDropShadowParams (3 UI units of blur, 0.66 intensity, no offset, the
atlas's existing look) instead of the text having its own.
draw_text.cpp included <windows.h> directly, whose min/max macros broke
the std::max calls added here. Include CommonWindows.h instead.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com >
2026-10-23 12:32:25 +02:00
Henrik Rydgård
d1f6da81cb
Add stb_rect_pack library, use it to pack our atlases way faster
2025-11-15 15:26:06 +01:00
Henrik Rydgård
915a88df60
AtlasGen: Separate pack and resolve steps
2025-11-15 15:26:06 +01:00
Henrik Rydgård
56d3dae334
Avoid regenerating the UI Atlas if unnecessary (faster resize)
2025-11-06 23:44:55 +01:00
Henrik Rydgård
2bc2d9c6f9
Minor UIAtlas code cleanup
2025-10-21 14:49:55 +02:00
Henrik Rydgård
e5f52854d8
Atlas SVG: Add 1px transparent border to images without shadows, to ensure consistent filtering
2025-10-16 16:45:59 +02:00
Henrik Rydgård
f0b5209908
Convert all UI atlas images to premultiplied alpha format
2025-10-16 11:07:05 +02:00
Henrik Rydgård
27ed337d99
Move more pngs into the images.svg file
2025-09-22 15:24:10 -06:00
Henrik Rydgård
0bb70de3f0
Correct the drop shadow
2025-09-19 11:23:48 -06:00
Henrik Rydgård
e03de7b9da
Add some quick and dirty drop shadow code. Now the generated images look good!
2025-09-19 10:57:29 -06:00
Henrik Rydgård
74874bb81e
Test a multi-shape image
2025-09-19 10:31:51 -06:00
Henrik Rydgård
bceb989811
Remove ImageDesc from AtlasGen.cpp/h
2025-09-18 11:26:19 -06:00
Henrik Rydgård
ca2a7c93a0
Make ToAtlasImage a global function instead of a method on ImageDesc
2025-09-18 11:03:50 -06:00
Henrik Rydgård
95703d2d9c
Delete "C++ table" output from atlastool
2025-09-18 10:58:27 -06:00
Henrik Rydgård
641fa40d82
Runtime atlas gen: Reorganize, remove global_id
2025-09-17 10:46:08 -06:00
Henrik Rydgård
52f2475353
Remove the LoadImage method (the two users have quite different needs)
2025-09-17 10:37:42 -06:00
Henrik Rydgård
0298536efa
Separate images from data in bucketer
2025-09-17 10:28:08 -06:00
Henrik Rydgård
d2512817bd
checkpoint
2025-09-17 10:10:59 -06:00
Henrik Rydgård
82cf6d7c17
AtlasGen: Remove Effect support
2025-09-17 09:49:54 -06:00
Henrik Rydgård
52c4c31508
Runtime atlas generation
2025-09-17 09:49:54 -06:00
Henrik Rydgård
947ddf865f
Extract some duplicated code into a pngSave function
2025-09-15 11:46:54 -06:00
Henrik Rydgård
f856beb157
Move a lot of the atlas logic to Common/Render/AtlasGen.cpp/h, code
...
cleanup
2025-09-12 12:17:11 -06:00