Skip to content

Commit

Permalink
Sync SDL3 header -> wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
SDLWikiBot committed Jun 24, 2024
1 parent ee8cd03 commit 5eda05e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SDL3/SDL_GetDisplays.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ SDL_DisplayID* SDL_GetDisplays(int *count);
## Function Parameters
| | | |
| ----- | --------- | --------------------------------------------------------- |
| int * | **count** | a pointer filled in with the number of displays returned. |
| | | |
| ----- | --------- | ---------------------------------------------------------------------- |
| int * | **count** | a pointer filled in with the number of displays returned, may be NULL. |
## Return Value
Expand Down
34 changes: 34 additions & 0 deletions SDL3/SDL_GetWindows.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
###### (This is the documentation for SDL3, which is under heavy development and the API is changing! [SDL2](https://wiki.libsdl.org/SDL2/) is the current stable version!)
# SDL_GetWindows

Get a list of valid windows.

## Header File

Defined in [<SDL3/SDL_video.h>](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_video.h)

## Syntax

```c
extern SDL_DECLSPEC SDL_Window **SDLCALL SDL_GetWindows(int *count);
```
## Function Parameters
| | | |
| ----- | --------- | --------------------------------------------------------------------- |
| int * | **count** | a pointer filled in with the number of windows returned, may be NULL. |
## Return Value
([SDL_Window](SDL_Window) **) Returns a 0 terminated array of window
pointers which should be freed with [SDL_free](SDL_free)(), or NULL on
error; call [SDL_GetError](SDL_GetError)() for more details.
## Version
This function is available since SDL 3.0.0.
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategoryVideo](CategoryVideo)

0 comments on commit 5eda05e

Please sign in to comment.