diff --git a/MiniEngine.cpp b/MiniEngine.cpp index 931b881..014e917 100644 --- a/MiniEngine.cpp +++ b/MiniEngine.cpp @@ -2088,7 +2088,7 @@ namespace MiniEngine } //static - std::tuple SDLSystem::getCompileVersion() + std::tuple SDLSystem::GetSDLCompileVersion() { SDL_version ver; SDL_VERSION(&ver); @@ -2096,12 +2096,56 @@ namespace MiniEngine } //static - std::tuple SDLSystem::getLinkedVersion() + std::tuple SDLSystem::GetSDLLinkedVersion() { SDL_version ver; SDL_GetVersion(&ver); return std::make_tuple(ver.major,ver.minor,ver.patch); } + //static + std::tuple SDLSystem::GetIMGCompileVersion() + { + SDL_version ver; + SDL_IMAGE_VERSION(&ver); + return std::make_tuple(ver.major,ver.minor,ver.patch); + } + + //static + std::tuple SDLSystem::GetIMGLinkedVersion() + { + const SDL_version* ptr=IMG_Linked_Version(); + return std::make_tuple(); + } + + //static + std::tuple SDLSystem::GetMixCompileVersion() + { + SDL_version ver; + SDL_MIXER_VERSION(&ver); + return std::make_tuple(ver.major,ver.minor,ver.patch); + } + + //static + std::tuple SDLSystem::GetMixLinkedVersion() + { + const SDL_version* ptr=Mix_Linked_Version(); + return std::make_tuple(ptr->major,ptr->minor,ptr->patch); + } + + //static + std::tuple SDLSystem::GetTTFCompileVersion() + { + SDL_version ver; + SDL_TTF_VERSION(&ver); + return std::make_tuple(ver.major,ver.minor,ver.patch); + } + + //static + std::tuple SDLSystem::GetTTFLinkedVersion() + { + const SDL_version* ptr=TTF_Linked_Version(); + return std::make_tuple(ptr->major,ptr->minor,ptr->patch); + } /// Global Executor For class Timer Uint32 _global_timer_executor(Uint32 interval,void* param) diff --git a/MiniEngine.h b/MiniEngine.h index d6313ea..82b5714 100644 --- a/MiniEngine.h +++ b/MiniEngine.h @@ -574,8 +574,17 @@ namespace MiniEngine static bool HasScreenKeyboardSupport(); - static std::tuple getCompileVersion(); - static std::tuple getLinkedVersion(); + static std::tuple GetSDLCompileVersion(); + static std::tuple GetSDLLinkedVersion(); + + static std::tuple GetIMGCompileVersion(); + static std::tuple GetIMGLinkedVersion(); + + static std::tuple GetMixCompileVersion(); + static std::tuple GetMixLinkedVersion(); + + static std::tuple GetTTFCompileVersion(); + static std::tuple GetTTFLinkedVersion(); class Android {