SDL/include
David Gow 35c1bbfa49 SDL_stdinc.h: Add an SDL_clamp() function
Add a function to clamp a value to a range.

SDL_clamp(x, a, b) is equivalent to SDL_min(a, SDL_max(x, b)): it
ensures that x is not smaller than a, nor larger than b.

While, as best I can tell, this isn't actually standardised anywhere,
it's a very useful function/macro to have.
2021-08-14 09:01:14 -07:00
..
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-07-14 17:07:04 -04:00
2021-07-14 17:07:04 -04:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-03-08 09:07:12 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-07-14 17:07:04 -04:00
2021-07-14 17:07:04 -04:00
2021-07-29 13:46:05 +00:00
2021-07-14 17:07:04 -04:00
2021-07-14 17:07:04 -04:00
2021-07-14 17:07:04 -04:00
2021-07-14 17:07:04 -04:00
2021-07-14 17:07:04 -04:00
2021-07-14 17:07:04 -04:00
2021-07-14 17:07:04 -04:00
2021-07-24 17:32:05 +00:00
2021-07-14 17:07:04 -04:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-07-14 17:07:04 -04:00
2021-08-10 22:20:06 +00:00
2021-07-14 17:07:04 -04:00
2021-01-02 10:25:38 -08:00
2021-07-14 17:07:04 -04:00
2021-07-28 17:13:05 +00:00
2021-07-14 17:07:04 -04:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-07-14 17:07:04 -04:00
2021-01-02 10:25:38 -08:00
2021-07-27 14:23:40 -07:00
2021-07-14 17:07:04 -04:00
2021-07-14 17:07:04 -04:00