Skip to content

Commit

Permalink
Sync SDL2 header -> wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
SDLWikiBot committed Apr 23, 2024
1 parent 102029c commit 9ccc8b5
Show file tree
Hide file tree
Showing 780 changed files with 616 additions and 1,331 deletions.
3 changes: 1 addition & 2 deletions SDL2/SDL_AddEventWatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ user through [SDL_PeepEvents](SDL_PeepEvents)().
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_DelEventWatch](SDL_DelEventWatch)
* [SDL_SetEventFilter](SDL_SetEventFilter)
Expand All @@ -67,4 +67,3 @@ SDL_AddEventWatch(MyEventFunction, NULL);
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)


2 changes: 1 addition & 1 deletion SDL2/SDL_AddHintCallback.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void SDL_AddHintCallback(const char *name,
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_DelHintCallback](SDL_DelHintCallback)
Expand Down
3 changes: 1 addition & 2 deletions SDL2/SDL_AddTimer.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ callback needs to adjust for variances.
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_RemoveTimer](SDL_RemoveTimer)
Expand Down Expand Up @@ -99,4 +99,3 @@ SDL_RemoveTimer(timerID);
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)


3 changes: 1 addition & 2 deletions SDL2/SDL_AllocFormat.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ errors such as `Blit combination not supported` may occur.
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_FreeFormat](SDL_FreeFormat)
Expand All @@ -62,4 +62,3 @@ printf("Amount of bytes: %i\n", pixel_format->BytesPerPixel);
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)


3 changes: 1 addition & 2 deletions SDL2/SDL_AllocPalette.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The palette entries are initialized to white.
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_FreePalette](SDL_FreePalette)
Expand Down Expand Up @@ -80,4 +80,3 @@ palette = NULL;
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)


3 changes: 1 addition & 2 deletions SDL2/SDL_AllocRW.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ allocated through this function, so they can all be freed correctly with
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_FreeRW](SDL_FreeRW)
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
1 change: 0 additions & 1 deletion SDL2/SDL_AndroidBackButton.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ This function is available since SDL 2.0.9.
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AndroidGetActivity.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ https://docs.oracle.com/javase/1.5.0/docs/guide/jni/spec/functions.html
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_AndroidGetJNIEnv](SDL_AndroidGetJNIEnv)
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AndroidGetExternalStoragePath.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ Your external storage path is typically:
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_AndroidGetExternalStorageState](SDL_AndroidGetExternalStorageState)
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AndroidGetExternalStorageState.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ If external storage is currently unavailable, this will return 0.
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_AndroidGetExternalStoragePath](SDL_AndroidGetExternalStoragePath)
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AndroidGetInternalStoragePath.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ Your internal storage path is typically:
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_AndroidGetExternalStorageState](SDL_AndroidGetExternalStorageState)
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AndroidGetJNIEnv.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ rationale being that the SDL headers can avoid including jni.h.
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_AndroidGetActivity](SDL_AndroidGetActivity)
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
1 change: 0 additions & 1 deletion SDL2/SDL_AndroidRequestPermission.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,3 @@ This function is available since SDL 2.0.14.
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
1 change: 0 additions & 1 deletion SDL2/SDL_AndroidSendMessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ This function is available since SDL 2.0.22.
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
1 change: 0 additions & 1 deletion SDL2/SDL_AndroidShowToast.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@ This function is available since SDL 2.0.16.
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AtomicAdd.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ it!***
This function is available since SDL 2.0.2.
## Related Functions
## See Also
* [SDL_AtomicDecRef](SDL_AtomicDecRef)
* [SDL_AtomicIncRef](SDL_AtomicIncRef)
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AtomicCAS.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ it!***
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_AtomicCASPtr](SDL_AtomicCASPtr)
* [SDL_AtomicGet](SDL_AtomicGet)
Expand All @@ -45,4 +45,3 @@ This function is available since SDL 2.0.0.
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AtomicCASPtr.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ it!***
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_AtomicCAS](SDL_AtomicCAS)
* [SDL_AtomicGetPtr](SDL_AtomicGetPtr)
Expand All @@ -45,4 +45,3 @@ This function is available since SDL 2.0.0.
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AtomicGet.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ it!***
This function is available since SDL 2.0.2.
## Related Functions
## See Also
* [SDL_AtomicSet](SDL_AtomicSet)
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AtomicGetPtr.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@ it!***
This function is available since SDL 2.0.2.
## Related Functions
## See Also
* [SDL_AtomicCASPtr](SDL_AtomicCASPtr)
* [SDL_AtomicSetPtr](SDL_AtomicSetPtr)
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AtomicLock.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ doing. Please be careful using any sort of spinlock!***
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_AtomicTryLock](SDL_AtomicTryLock)
* [SDL_AtomicUnlock](SDL_AtomicUnlock)
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AtomicSet.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ it!***
This function is available since SDL 2.0.2.
## Related Functions
## See Also
* [SDL_AtomicGet](SDL_AtomicGet)
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AtomicSetPtr.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ it!***
This function is available since SDL 2.0.2.
## Related Functions
## See Also
* [SDL_AtomicCASPtr](SDL_AtomicCASPtr)
* [SDL_AtomicGetPtr](SDL_AtomicGetPtr)
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AtomicTryLock.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ doing. Please be careful using any sort of spinlock!***
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_AtomicLock](SDL_AtomicLock)
* [SDL_AtomicUnlock](SDL_AtomicUnlock)
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AtomicUnlock.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@ doing. Please be careful using any sort of spinlock!***
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_AtomicLock](SDL_AtomicLock)
* [SDL_AtomicTryLock](SDL_AtomicTryLock)
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AudioInit.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ normally use [SDL_Init](SDL_Init)() or
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_AudioQuit](SDL_AudioQuit)
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AudioQuit.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ normally use [SDL_Quit](SDL_Quit)() or
This function is available since SDL 2.0.0.
## Related Functions
## See Also
* [SDL_AudioInit](SDL_AudioInit)
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AudioStreamAvailable.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ even be zero. Add more data or flush the stream if you need the data now.
This function is available since SDL 2.0.7.
## Related Functions
## See Also
* [SDL_NewAudioStream](SDL_NewAudioStream)
* [SDL_AudioStreamPut](SDL_AudioStreamPut)
Expand All @@ -36,4 +36,3 @@ This function is available since SDL 2.0.7.
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
5 changes: 2 additions & 3 deletions SDL2/SDL_AudioStreamClear.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###### (This is the legacy documentation for stable SDL2, the current stable version; [SDL3](https://wiki.libsdl.org/SDL3/) is the current development version.)
# SDL_AudioStreamClear

Clear any pending data in the stream without converting it
Clear any pending data in the stream without converting it

## Header File

Expand All @@ -18,7 +18,7 @@ void SDL_AudioStreamClear(SDL_AudioStream *stream);
This function is available since SDL 2.0.7.
## Related Functions
## See Also
* [SDL_NewAudioStream](SDL_NewAudioStream)
* [SDL_AudioStreamPut](SDL_AudioStreamPut)
Expand All @@ -30,4 +30,3 @@ This function is available since SDL 2.0.7.
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
3 changes: 1 addition & 2 deletions SDL2/SDL_AudioStreamFlush.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ input, so the complete output becomes available.
This function is available since SDL 2.0.7.
## Related Functions
## See Also
* [SDL_NewAudioStream](SDL_NewAudioStream)
* [SDL_AudioStreamPut](SDL_AudioStreamPut)
Expand All @@ -36,4 +36,3 @@ This function is available since SDL 2.0.7.
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
Loading

0 comments on commit 9ccc8b5

Please sign in to comment.