VRM loader for LÖVE 2D.
add '-DIMGUI_USE_WCHAR32=1' for imWchar to uint32_t from uint16_t(default).
if FREETYPE_GENERATION then
CFLAGS = CFLAGS .. " -DIMGUI_ENABLE_FREETYPE -DIMGUI_USE_WCHAR32=1"
end
cimgui-love> cd cimgui/generator
cimgui-love/cimgui/generator> LUA_PATH=$(pwd)\\?.lua luajit generator.lua cl "internal freetype"
cimgui-love/CMakeLists.txt
# FIND_PACKAGE(freetype REQUIRED PATHS ${FREETYPE_PATH})
include(FetchContent)
FetchContent_Declare(
freetype2
GIT_REPOSITORY https://github.com/freetype/freetype.git
GIT_TAG VER-2-13-2
GIT_PROGRESS TRUE)
FetchContent_MakeAvailable(freetype2)
cimgui-love/cimgui> cmake -G Ninja -S . -B build -DCMAKE_BUILD_TYPE=Release -DIMGUI_FREETYPE=on -DCMAKE_CXX_FLAGS=-DIMGUI_USE_WCHAR32=1
cimgui-love/cimgui> cmake --build build
cimgui-love/cimgui> copy build/cimgui.dll %DST_DIR%
cimgui-love/cimgui/generator> LUA_PATH=$(pwd)\\?.lua luajit generator.lua
FILE* => void*