diff --git a/examples/audio/01-simple-playback/simple-playback.c b/examples/audio/01-simple-playback/simple-playback.c index 469667926..ae6eabd04 100644 --- a/examples/audio/01-simple-playback/simple-playback.c +++ b/examples/audio/01-simple-playback/simple-playback.c @@ -21,6 +21,8 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) { SDL_AudioSpec spec; + SDL_SetAppMetadata("Example Audio Simple Playback", "1.0", "com.example.audio-simple-playback"); + if (!SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE; diff --git a/examples/audio/02-simple-playback-callback/simple-playback-callback.c b/examples/audio/02-simple-playback-callback/simple-playback-callback.c index 327f6a968..47d5098d4 100644 --- a/examples/audio/02-simple-playback-callback/simple-playback-callback.c +++ b/examples/audio/02-simple-playback-callback/simple-playback-callback.c @@ -53,6 +53,8 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) { SDL_AudioSpec spec; + SDL_SetAppMetadata("Example Simple Audio Playback Callback", "1.0", "com.example.audio-simple-playback-callback"); + if (!SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE; diff --git a/examples/audio/03-load-wav/load-wav.c b/examples/audio/03-load-wav/load-wav.c index 35443863c..7a4adf0cb 100644 --- a/examples/audio/03-load-wav/load-wav.c +++ b/examples/audio/03-load-wav/load-wav.c @@ -31,6 +31,8 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) SDL_AudioSpec spec; char *wav_path = NULL; + SDL_SetAppMetadata("Example Audio Load Wave", "1.0", "com.example.audio-load-wav"); + if (!SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE; diff --git a/examples/camera/01-read-and-draw/read-and-draw.c b/examples/camera/01-read-and-draw/read-and-draw.c index 12ae167e7..3f834d372 100644 --- a/examples/camera/01-read-and-draw/read-and-draw.c +++ b/examples/camera/01-read-and-draw/read-and-draw.c @@ -26,6 +26,8 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) SDL_CameraID *devices = NULL; int devcount = 0; + SDL_SetAppMetadata("Example Camera Read and Draw", "1.0", "com.example.camera-read-and-draw"); + if (!SDL_Init(SDL_INIT_VIDEO | SDL_INIT_CAMERA)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE; diff --git a/examples/pen/01-drawing-lines/drawing-lines.c b/examples/pen/01-drawing-lines/drawing-lines.c index 41f96715d..a6fab870f 100644 --- a/examples/pen/01-drawing-lines/drawing-lines.c +++ b/examples/pen/01-drawing-lines/drawing-lines.c @@ -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; diff --git a/examples/renderer/01-clear/clear.c b/examples/renderer/01-clear/clear.c index b925958ec..6c0a35ebb 100644 --- a/examples/renderer/01-clear/clear.c +++ b/examples/renderer/01-clear/clear.c @@ -17,6 +17,8 @@ static SDL_Renderer *renderer = NULL; /* This function runs once at startup. */ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) { + SDL_SetAppMetadata("Example Renderer Clear", "1.0", "com.example.renderer-clear"); + if (!SDL_Init(SDL_INIT_VIDEO)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE; diff --git a/examples/renderer/02-primitives/primitives.c b/examples/renderer/02-primitives/primitives.c index e5d8a067c..5e748c57d 100644 --- a/examples/renderer/02-primitives/primitives.c +++ b/examples/renderer/02-primitives/primitives.c @@ -19,6 +19,8 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) { int i; + SDL_SetAppMetadata("Example Renderer Primitives", "1.0", "com.example.renderer-primitives"); + if (!SDL_Init(SDL_INIT_VIDEO)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE; diff --git a/examples/renderer/03-lines/lines.c b/examples/renderer/03-lines/lines.c index 3b18a3e7e..76d584b54 100644 --- a/examples/renderer/03-lines/lines.c +++ b/examples/renderer/03-lines/lines.c @@ -16,6 +16,8 @@ static SDL_Renderer *renderer = NULL; /* This function runs once at startup. */ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) { + SDL_SetAppMetadata("Example Renderer Lines", "1.0", "com.example.renderer-lines"); + if (!SDL_Init(SDL_INIT_VIDEO)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE; diff --git a/examples/renderer/04-points/points.c b/examples/renderer/04-points/points.c index 4718f4b2a..bff4cf0f5 100644 --- a/examples/renderer/04-points/points.c +++ b/examples/renderer/04-points/points.c @@ -36,6 +36,8 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) { int i; + SDL_SetAppMetadata("Example Renderer Points", "1.0", "com.example.renderer-points"); + if (!SDL_Init(SDL_INIT_VIDEO)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE; diff --git a/examples/renderer/05-rectangles/rectangles.c b/examples/renderer/05-rectangles/rectangles.c index c67f3865c..6c31e6f35 100644 --- a/examples/renderer/05-rectangles/rectangles.c +++ b/examples/renderer/05-rectangles/rectangles.c @@ -19,6 +19,8 @@ static SDL_Renderer *renderer = NULL; /* This function runs once at startup. */ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) { + SDL_SetAppMetadata("Example Renderer Rectangles", "1.0", "com.example.renderer-rectangles"); + if (!SDL_Init(SDL_INIT_VIDEO)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE; diff --git a/examples/renderer/06-textures/textures.c b/examples/renderer/06-textures/textures.c index 327cbf230..f47e611fe 100644 --- a/examples/renderer/06-textures/textures.c +++ b/examples/renderer/06-textures/textures.c @@ -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; diff --git a/examples/renderer/07-streaming-textures/streaming-textures.c b/examples/renderer/07-streaming-textures/streaming-textures.c index 4107ab691..6c86c637b 100644 --- a/examples/renderer/07-streaming-textures/streaming-textures.c +++ b/examples/renderer/07-streaming-textures/streaming-textures.c @@ -22,6 +22,8 @@ static SDL_Texture *texture = NULL; /* This function runs once at startup. */ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) { + SDL_SetAppMetadata("Example Renderer Streaming Textures", "1.0", "com.example.renderer-streaming-textures"); + if (!SDL_Init(SDL_INIT_VIDEO)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE; diff --git a/examples/renderer/08-rotating-textures/rotating-textures.c b/examples/renderer/08-rotating-textures/rotating-textures.c index 805c90a77..b273d6757 100644 --- a/examples/renderer/08-rotating-textures/rotating-textures.c +++ b/examples/renderer/08-rotating-textures/rotating-textures.c @@ -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 Rotating Textures", "1.0", "com.example.renderer-rotating-textures"); + if (!SDL_Init(SDL_INIT_VIDEO)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE; diff --git a/examples/renderer/09-scaling-textures/scaling-textures.c b/examples/renderer/09-scaling-textures/scaling-textures.c index bf89c4b5e..57a718021 100644 --- a/examples/renderer/09-scaling-textures/scaling-textures.c +++ b/examples/renderer/09-scaling-textures/scaling-textures.c @@ -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 Scaling Textures", "1.0", "com.example.renderer-scaling-textures"); + if (!SDL_Init(SDL_INIT_VIDEO)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE; diff --git a/examples/renderer/10-geometry/geometry.c b/examples/renderer/10-geometry/geometry.c index 1a9399f59..f846509de 100644 --- a/examples/renderer/10-geometry/geometry.c +++ b/examples/renderer/10-geometry/geometry.c @@ -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 Geometry", "1.0", "com.example.renderer-geometry"); + if (!SDL_Init(SDL_INIT_VIDEO)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE; diff --git a/examples/renderer/11-color-mods/color-mods.c b/examples/renderer/11-color-mods/color-mods.c index 7e2618441..449a95100 100644 --- a/examples/renderer/11-color-mods/color-mods.c +++ b/examples/renderer/11-color-mods/color-mods.c @@ -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 Color Mods", "1.0", "com.example.renderer-color-mods"); + if (!SDL_Init(SDL_INIT_VIDEO)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE; diff --git a/examples/renderer/14-viewport/viewport.c b/examples/renderer/14-viewport/viewport.c index 7aadf4f8f..efef94a57 100644 --- a/examples/renderer/14-viewport/viewport.c +++ b/examples/renderer/14-viewport/viewport.c @@ -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 Viewport", "1.0", "com.example.renderer-viewport"); + if (!SDL_Init(SDL_INIT_VIDEO)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE; diff --git a/examples/renderer/15-cliprect/cliprect.c b/examples/renderer/15-cliprect/cliprect.c index 7431efe9d..7717da65e 100644 --- a/examples/renderer/15-cliprect/cliprect.c +++ b/examples/renderer/15-cliprect/cliprect.c @@ -32,6 +32,8 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) SDL_Surface *surface = NULL; char *bmp_path = NULL; + SDL_SetAppMetadata("Example Renderer Clipping Rectangle", "1.0", "com.example.renderer-cliprect"); + if (!SDL_Init(SDL_INIT_VIDEO)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE; diff --git a/examples/renderer/17-read-pixels/read-pixels.c b/examples/renderer/17-read-pixels/read-pixels.c index 892b43103..65e60b6a0 100644 --- a/examples/renderer/17-read-pixels/read-pixels.c +++ b/examples/renderer/17-read-pixels/read-pixels.c @@ -34,6 +34,8 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) SDL_Surface *surface = NULL; char *bmp_path = NULL; + SDL_SetAppMetadata("Example Renderer Read Pixels", "1.0", "com.example.renderer-read-pixels"); + if (!SDL_Init(SDL_INIT_VIDEO)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE; diff --git a/examples/template.c b/examples/template.c index af7a43cf3..6719cc9ec 100644 --- a/examples/template.c +++ b/examples/template.c @@ -16,6 +16,8 @@ static SDL_Renderer *renderer = NULL; /* This function runs once at startup. */ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) { + SDL_SetAppMetadata("Example HUMAN READABLE NAME", "1.0", "com.example.CATEGORY-NAME"); + if (!SDL_Init(SDL_INIT_VIDEO)) { SDL_Log("Couldn't initialize SDL: %s", SDL_GetError()); return SDL_APP_FAILURE;