1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00
Commit Graph

27 Commits

Author SHA1 Message Date
975d9aedc9 Merge branch 'vcmi/beta' into 'vcmi/develop' 2025-04-13 18:53:54 +03:00
8a0fed7b3a Temporarily(?) use weak_ptr to reduce ram usage increase during long
game sessions
2025-03-26 15:37:38 +00:00
2362c6da21 Fixes for multiple new issues from Sonar 2025-02-21 15:57:39 +00:00
cca4c0888c In-memory assets generation
All assets generation (large spellbook, terrain animations, etc) are now
done in memory and used as it, without saving to disk.

This should slightly improve load times since there is no encode png /
decode png, and should help with avoiding strange bug when vcmi fails to
load recently saved assets.

If needed, such assets can be force-dumped on disk using already
existing console command
2025-01-30 22:21:38 +00:00
c9dd3dab5d Fix loading of pre-scaled assets 2025-01-21 21:15:21 +00:00
668bf63fc0 Remove access to internal surface of Canvas 2025-01-21 21:15:21 +00:00
4a600a9d4c Reworked image container classes for easier support of new features 2025-01-21 21:15:21 +00:00
aef6b0cc00 Fix several new issues detected by SonarCloud 2024-11-20 16:06:38 +00:00
7f0cb6ce6a ISharedImage is now always const, remove creation of image copy when
upscaling to same factor
2024-11-16 15:40:05 +00:00
35e198078b cleanup logic 2024-11-09 14:02:09 +01:00
ac31a946e6 use path instead of different filename 2024-11-09 13:07:15 +01:00
11b437db62 prescaled image support 2024-11-03 20:27:11 +01:00
248cff49a4 Moved fonts handling from Graphics to RenderHandler class 2024-09-23 15:43:11 +00:00
4abd96dba4 Add debug code to save every loaded image to a file 2024-09-13 12:26:31 +00:00
dfd3f0c1a6 Fixed generation of upscaled spellbook 2024-09-12 21:22:41 +00:00
ffba847f40 xBRZ-upscaled images now support common palette-transform effects:
- Player coloring
- Flag color for map
- Glue selection for combat
2024-08-17 15:25:26 +00:00
502f47c6b5 Rename IConstImage to more clear ISharedImage 2024-08-17 15:25:26 +00:00
4171026035 First iteration of upscaled rendering 2024-08-17 15:25:25 +00:00
e4bed98674 Replaced raw json nodes with ImageLocator class 2024-07-19 10:08:50 +00:00
fd726523a2 Remove creations of custom animations in runtime 2024-07-19 10:08:50 +00:00
0d6ec0d224 Reviewed usage of EBlitMode, now specified clearly in all cases 2024-07-19 10:08:50 +00:00
b850b6339f Flipped images are now tracked by RenderHandler 2024-07-19 10:08:50 +00:00
9f31ec5326 Restore previously disabled icons registry 2024-07-19 10:08:50 +00:00
47de9a62dc Created separate classes for shared, unchangeable image and image
manipulators owned by UI elements
2024-07-19 10:08:50 +00:00
600b06b74d Moved all handling of image loading to render handler 2024-07-19 10:08:50 +00:00
56f1725234 All images are now loaded via RenderHandler class 2024-07-19 10:08:50 +00:00
1d0e696db6 Added RenderHandler that acts as factory for images and animations 2023-09-04 18:22:34 +03:00