SVG spritesheets

An .svg spritesheet loads through lunasvg (now part of the core library) at
one pixel per SVG unit, so regions, crops and picking work as for PNGs. The
preview, renders and CLI draw it again, cached per power-of-two zoom level up
to 8x, so it stays sharp when zoomed or scaled. Its pixels aren't edited
(pencil, eraser, pack and merge leave it alone, and Save skips it), and the
Isaac warning counts SVG sheets since the game can't load them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-08 17:41:57 -04:00
1 parent b31a28ebe9
commit a917d8ae97
21 files changed
+178 -21

No files matched your search

+2
View File
@@ -119,6 +119,7 @@ set(CORE_INCLUDE_DIRS
external/imgui
external/glm
external/tinyxml2
external/lunasvg/include
external/SDL/include
src
src/imgui
@@ -127,6 +128,7 @@ set(CORE_INCLUDE_DIRS
add_library(anm2ed_core STATIC ${CORE_SRC} ${TINYXML2_SRC} ${IMGUI_CORE_SRC})
target_include_directories(anm2ed_core PUBLIC ${CORE_INCLUDE_DIRS})
target_link_libraries(anm2ed_core PUBLIC lunasvg)
target_compile_definitions(anm2ed_core PUBLIC IMGUI_DISABLE_OBSOLETE_FUNCTIONS IMGUI_DEBUG_PARANOID IMGUI_ENABLE_DOCKING)
# windows.h otherwise defines min/max macros that break std::min/std::max.
if(WIN32)