Atlas - YourSourceHere.c
Home / ext / SDL / android-project / app / jni / src Lines: 1 | Size: 929 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1#include <SDL3/SDL.h> 2#include <SDL3/SDL_main.h> 3 4/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ 5/* */ 6/* Remove this source, and replace with your SDL sources */ 7/* */ 8/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ 9 10int main(int argc, char *argv[]) { 11 (void)argc; 12 (void)argv; 13 if (!SDL_Init(SDL_INIT_EVENTS | SDL_INIT_VIDEO)) { 14 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_Init failed (%s)", SDL_GetError()); 15 return 1; 16 } 17 18 if (!SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_INFORMATION, "Hello World", 19 "!! Your SDL project successfully runs on Android !!", NULL)) { 20 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_ShowSimpleMessageBox failed (%s)", SDL_GetError()); 21 return 1; 22 } 23 24 SDL_Quit(); 25 return 0; 26} 27[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.