Allow setting any number of sprites over the video

Default to no sprites over the video
This commit is contained in:
Sam Lantinga
2023-10-07 13:01:52 -07:00
parent ebf5e08fa1
commit ed6381b68d
2 changed files with 70 additions and 34 deletions

View File

@@ -185,10 +185,10 @@ endif()
set(FFmpeg_FIND_COMPONENTS AVCODEC AVFORMAT AVUTIL SWSCALE)
include("${SDL3_SOURCE_DIR}/cmake/FindFFmpeg.cmake")
if(FFmpeg_FOUND)
add_sdl_test_executable(testspriteffmpeg NO_C90 SOURCES testspriteffmpeg.c ${icon_bmp_header})
target_link_libraries(testspriteffmpeg PRIVATE ${FFMPEG_LIBRARIES})
add_sdl_test_executable(testffmpeg NO_C90 SOURCES testffmpeg.c ${icon_bmp_header})
target_link_libraries(testffmpeg PRIVATE ${FFMPEG_LIBRARIES})
else()
message(STATUS "Cannot find ffmpeg, skipping testspriteffmpeg")
message(STATUS "Can't find ffmpeg, skipping testffmpeg")
endif()
add_sdl_test_executable(checkkeys SOURCES checkkeys.c)