examples: add basic app metadata to all existing examples.

This commit is contained in:
Ryan C. Gordon committed 2024-10-07 17:41:15 -04:00
1 parent aa534c3ac3
commit 659f2f4b04
20 files changed
+40

No files matched your search

@@ -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;