sdlCeilf function

double sdlCeilf(
  1. double x
)

Compute the ceiling of x.

The ceiling of x is the smallest integer y such that y > x, i.e x rounded up to the nearest integer.

Domain: -INF <= x <= INF

Range: -INF <= y <= INF, y integer

This function operates on single-precision floating point values, use SDL_ceil for double-precision floats.

\param x floating point value. \returns the ceiling of x.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

\sa SDL_ceil \sa SDL_floorf \sa SDL_truncf \sa SDL_roundf \sa SDL_lroundf

extern SDL_DECLSPEC float SDLCALL SDL_ceilf(float x)

Implementation

double sdlCeilf(double x) {
  final sdlCeilfLookupFunction = libSdl3.lookupFunction<Float Function(Float x),
      double Function(double x)>('SDL_ceilf');
  return sdlCeilfLookupFunction(x);
}