@@ -296,6 +296,38 @@ function SDL_floor(x: cdouble): cdouble; cdecl;
296296function SDL_floorf (x: cfloat): cfloat; cdecl;
297297 external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_floorf' { $ENDIF} { $ENDIF} ;
298298
299+ (* *
300+ * Round to nearest integer, away from zero.
301+ *
302+ * \since This function is available since SDL 2.0.16.
303+ *)
304+ function SDL_lround (x: cdouble): clong; cdecl;
305+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_lround' { $ENDIF} { $ENDIF} ;
306+
307+ (* *
308+ * Round to nearest integer, away from zero.
309+ *
310+ * \since This function is available since SDL 2.0.16.
311+ *)
312+ function SDL_lroundf (x: cfloat): clong; cdecl;
313+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_lroundf' { $ENDIF} { $ENDIF} ;
314+
315+ (* *
316+ * Round to nearest integral value, away from zero.
317+ *
318+ * \since This function is available since SDL 2.0.16.
319+ *)
320+ function SDL_round (x: cdouble): cdouble; cdecl;
321+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_round' { $ENDIF} { $ENDIF} ;
322+
323+ (* *
324+ * Round to nearest integral value, away from zero.
325+ *
326+ * \since This function is available since SDL 2.0.16.
327+ *)
328+ function SDL_roundf (x: cfloat): cfloat; cdecl;
329+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_roundf' { $ENDIF} { $ENDIF} ;
330+
299331(* *
300332 * Calculate the sine of x, where x is given in radians.
301333 *
@@ -328,6 +360,22 @@ function SDL_tan(x: cdouble): cdouble; cdecl;
328360function SDL_tanf (x: cfloat): cfloat; cdecl;
329361 external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_tanf' { $ENDIF} { $ENDIF} ;
330362
363+ (* *
364+ * Round to nearest integral value, towards zero.
365+ *
366+ * \since This function is available since SDL 2.0.14.
367+ *)
368+ function SDL_trunc (x: cdouble): cdouble; cdecl;
369+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_trunc' { $ENDIF} { $ENDIF} ;
370+
371+ (* *
372+ * Round to nearest integral value, towards zero.
373+ *
374+ * \since This function is available since SDL 2.0.14.
375+ *)
376+ function SDL_truncf (x: cfloat): cfloat; cdecl;
377+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_truncf' { $ENDIF} { $ENDIF} ;
378+
331379
332380(* ** --- iconv functions --- ***)
333381
0 commit comments