Set appropriate meta data for the SDL app below:
|
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; |
|
} |
|
|
|
if (!SDL_CreateWindowAndRenderer("examples/renderer/clear", c_windowWidth, |
|
c_windowHeight, SDL_WINDOW_RESIZABLE, |
|
&window, &renderer)) { |
Set appropriate meta data for the SDL app below:
Flappy_Bird/src/main.cpp
Lines 22 to 33 in 039f2e3