examples: add basic app metadata to all existing examples.

This commit is contained in:
Ryan C. Gordon
2024-10-07 17:41:15 -04:00
parent aa534c3ac3
commit 659f2f4b04
20 changed files with 40 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
SDL_Surface *surface = NULL;
char *bmp_path = NULL;
SDL_SetAppMetadata("Example Renderer Textures", "1.0", "com.example.renderer-textures");
if (!SDL_Init(SDL_INIT_VIDEO)) {
SDL_Log("Couldn't initialize SDL: %s", SDL_GetError());
return SDL_APP_FAILURE;