@@ -214,6 +214,22 @@ function SDL_atan2(y, x: cdouble): cdouble; cdecl;
214214function SDL_atan2f (y, x: cfloat): cfloat; cdecl;
215215 external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_atan2f' { $ENDIF} { $ENDIF} ;
216216
217+ (* *
218+ * Calculate the smallest integral value that is not less than x.
219+ *
220+ * \since This function is available since SDL 2.0.4.
221+ *)
222+ function SDL_ceil (x: cdouble): cdouble; cdecl;
223+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_ceil' { $ENDIF} { $ENDIF} ;
224+
225+ (* *
226+ * Calculate the smallest integral value that is not less than x.
227+ *
228+ * \since This function is available since SDL 2.0.8.
229+ *)
230+ function SDL_ceilf (x: cfloat): cfloat; cdecl;
231+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_ceilf' { $ENDIF} { $ENDIF} ;
232+
217233(* *
218234 * Calculate the cosine of x, where x is given in radians.
219235 *
@@ -230,6 +246,22 @@ function SDL_cos(x: cdouble): cdouble; cdecl;
230246function SDL_cosf (x: cfloat): cfloat; cdecl;
231247 external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_cosf' { $ENDIF} { $ENDIF} ;
232248
249+ (* *
250+ * Calculate the largest integral value that is not greater than x.
251+ *
252+ * \since This function is available since SDL 2.0.4.
253+ *)
254+ function SDL_floor (x: cdouble): cdouble; cdecl;
255+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_floor' { $ENDIF} { $ENDIF} ;
256+
257+ (* *
258+ * Calculate the largest integral value that is not greater than x.
259+ *
260+ * \since This function is available since SDL 2.0.8.
261+ *)
262+ function SDL_floorf (x: cfloat): cfloat; cdecl;
263+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_floorf' { $ENDIF} { $ENDIF} ;
264+
233265(* *
234266 * Calculate the sine of x, where x is given in radians.
235267 *
0 commit comments