Implement Text Rendering

Added STB truetype
Switched AssetMgr to use Shared Ptr
This commit is contained in:
2025-12-07 23:20:15 +01:00
parent 28d2e291b3
commit 88e367a299
17 changed files with 5504 additions and 44 deletions

View File

@@ -7,7 +7,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED true)
option(AMY_GOD_DEV "Turn this on if you think you are god" OFF)
# THis option should be disabled if you use STB_IMAGE in you main project
set(AMY_BUILD_STB_IMAGE "Include STB Image code" CACHE BOOL 1)
set(AMY_BUILD_STB_IMAGE 1)
set(AMY_BUILD_STB_TRUETYPE 1)
set(AMY_WITH_MPG123 "Include MP3 Support" CACHE BOOL 1)
#add_subdirectory(vendor/libpicasso)
@@ -24,6 +25,7 @@ add_library(${PROJECT_NAME} STATIC
source/c3d.cpp
source/iron/iron.cpp
source/iron/drawlist.cpp
source/iron/font.cpp
source/maths/mat.cpp
)
target_include_directories(${PROJECT_NAME} PUBLIC
@@ -38,6 +40,7 @@ target_link_libraries(${PROJECT_NAME} PUBLIC m z ctru citro3d mpg123)
target_compile_definitions(${PROJECT_NAME} PUBLIC
AMY_3DS
AMY_STB_IMAGE=${AMY_BUILD_STB_IMAGE}
AMY_STB_TT=${AMY_BUILD_STB_TRUETYPE}
AMY_WITH_MPG123=${AMY_WITH_MPG123}
)
target_compile_options(${PROJECT_NAME} PUBLIC -Wno-psabi)
@@ -45,4 +48,4 @@ target_compile_options(${PROJECT_NAME} PUBLIC -Wno-psabi)
add_subdirectory(example)
install(TARGETS ${PROJECT_NAME})
install(DIRECTORY include DESTINATION .)
install(DIRECTORY include DESTINATION .)