-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ee066c
commit bb1bb20
Showing
11 changed files
with
365 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
###### (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_isinf | ||
|
||
Return whether the value is infinity. | ||
|
||
## Header File | ||
|
||
Defined in [<SDL3/SDL_stdinc.h>](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_stdinc.h) | ||
|
||
## Syntax | ||
|
||
```c | ||
int SDL_isinf(double x); | ||
``` | ||
## Function Parameters | ||
| | | | | ||
| ------ | ----- | -------------------------------------- | | ||
| double | **x** | double-precision floating point value. | | ||
## Return Value | ||
(int) Returns non-zero if the value is infinity, 0 otherwise. | ||
## Thread Safety | ||
It is safe to call this function from any thread. | ||
## Version | ||
This function is available since SDL 3.0.0. | ||
## See Also | ||
- [SDL_isinff](SDL_isinff) | ||
---- | ||
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategoryStdinc](CategoryStdinc) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
###### (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_isinff | ||
|
||
Return whether the value is infinity. | ||
|
||
## Header File | ||
|
||
Defined in [<SDL3/SDL_stdinc.h>](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_stdinc.h) | ||
|
||
## Syntax | ||
|
||
```c | ||
int SDL_isinff(float x); | ||
``` | ||
## Function Parameters | ||
| | | | | ||
| ----- | ----- | --------------------- | | ||
| float | **x** | floating point value. | | ||
## Return Value | ||
(int) Returns non-zero if the value is infinity, 0 otherwise. | ||
## Thread Safety | ||
It is safe to call this function from any thread. | ||
## Version | ||
This function is available since SDL 3.0.0. | ||
## See Also | ||
- [SDL_isinf](SDL_isinf) | ||
---- | ||
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategoryStdinc](CategoryStdinc) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
###### (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_isnan | ||
|
||
Return whether the value is NaN. | ||
|
||
## Header File | ||
|
||
Defined in [<SDL3/SDL_stdinc.h>](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_stdinc.h) | ||
|
||
## Syntax | ||
|
||
```c | ||
int SDL_isnan(double x); | ||
``` | ||
## Function Parameters | ||
| | | | | ||
| ------ | ----- | -------------------------------------- | | ||
| double | **x** | double-precision floating point value. | | ||
## Return Value | ||
(int) Returns non-zero if the value is NaN, 0 otherwise. | ||
## Thread Safety | ||
It is safe to call this function from any thread. | ||
## Version | ||
This function is available since SDL 3.0.0. | ||
## See Also | ||
- [SDL_isnanf](SDL_isnanf) | ||
---- | ||
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategoryStdinc](CategoryStdinc) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
###### (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_isnanf | ||
|
||
Return whether the value is NaN. | ||
|
||
## Header File | ||
|
||
Defined in [<SDL3/SDL_stdinc.h>](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_stdinc.h) | ||
|
||
## Syntax | ||
|
||
```c | ||
int SDL_isnanf(float x); | ||
``` | ||
## Function Parameters | ||
| | | | | ||
| ----- | ----- | --------------------- | | ||
| float | **x** | floating point value. | | ||
## Return Value | ||
(int) Returns non-zero if the value is NaN, 0 otherwise. | ||
## Thread Safety | ||
It is safe to call this function from any thread. | ||
## Version | ||
This function is available since SDL 3.0.0. | ||
## See Also | ||
- [SDL_isnan](SDL_isnan) | ||
---- | ||
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategoryStdinc](CategoryStdinc) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
###### (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_rand_bits_r | ||
|
||
Generate 32 pseudo-random bits. | ||
|
||
## Header File | ||
|
||
Defined in [<SDL3/SDL_stdinc.h>](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_stdinc.h) | ||
|
||
## Syntax | ||
|
||
```c | ||
Uint32 SDL_rand_bits_r(Uint64 *state); | ||
``` | ||
## Function Parameters | ||
| | | | | ||
| -------- | --------- | ------------------------------------------------------------------- | | ||
| Uint64 * | **state** | a pointer to the current random number state, this may not be NULL. | | ||
## Return Value | ||
(Uint32) Returns a random value in the range of | ||
[0-[SDL_MAX_UINT32](SDL_MAX_UINT32)]. | ||
## Remarks | ||
You likely want to use [SDL_rand_r](SDL_rand_r)() to get a psuedo-random | ||
number instead. | ||
There are no guarantees as to the quality of the random sequence produced, | ||
and this should not be used for security (cryptography, passwords) or where | ||
money is on the line (loot-boxes, casinos). There are many random number | ||
libraries available with different characteristics and you should pick one | ||
of those to meet any serious needs. | ||
## Thread Safety | ||
This function is thread-safe, as long as the state pointer isn't shared | ||
between threads. | ||
## Version | ||
This function is available since SDL 3.0.0. | ||
## See Also | ||
- [SDL_rand_r](SDL_rand_r) | ||
- [SDL_randf_r](SDL_randf_r) | ||
---- | ||
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategoryStdinc](CategoryStdinc) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.