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

@@ -23,6 +23,8 @@ static float previous_touch_y = -1.0f;
/* This function runs once at startup. */
SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
{
SDL_SetAppMetadata("Example Pen Drawing Lines", "1.0", "com.example.pen-drawing-lines");
if (!SDL_Init(SDL_INIT_VIDEO)) {
SDL_Log("Couldn't initialize SDL: %s", SDL_GetError());
return SDL_APP_FAILURE;