Skip to content

Commit

Permalink
Sync SDL3 wiki -> header
Browse files Browse the repository at this point in the history
  • Loading branch information
SDLWikiBot committed Aug 17, 2024
1 parent 42e4369 commit a7bed81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/README-main-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ functions:
First:

```c
int SDL_AppInit(void **appstate, int argc, char **argv);
SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv);
```
This will be called _once_ before anything else. argc/argv work like they
Expand All @@ -158,7 +158,7 @@ calls.
Then:
```c
int SDL_AppIterate(void *appstate);
SDL_AppResult SDL_AppIterate(void *appstate);
```

This is called over and over, possibly at the refresh rate of the display or
Expand All @@ -178,7 +178,7 @@ not check the event queue in this function (SDL_AppEvent exists for that).
Next:

```c
int SDL_AppEvent(void *appstate, const SDL_Event *event);
SDL_AppResult SDL_AppEvent(void *appstate, const SDL_Event *event);
```
This will be called whenever an SDL event arrives. Your app should not call
Expand Down

0 comments on commit a7bed81

Please sign in to comment.