sdlGetRenderDriverInfo function

int sdlGetRenderDriverInfo(
  1. int index,
  2. Pointer<SdlRendererInfo> info
)

Get info about a specific 2D rendering driver for the current display.

\param index the index of the driver to query information about \param info an SDL_RendererInfo structure to be filled with information on the rendering driver \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_CreateRenderer \sa SDL_GetNumRenderDrivers

extern DECLSPEC int SDLCALL SDL_GetRenderDriverInfo(int index, SDL_RendererInfo * info)

Implementation

int sdlGetRenderDriverInfo(int index, Pointer<SdlRendererInfo> info) {
  final sdlGetRenderDriverInfoLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Int32 index, Pointer<SdlRendererInfo> info),
      int Function(
          int index, Pointer<SdlRendererInfo> info)>('SDL_GetRenderDriverInfo');
  return sdlGetRenderDriverInfoLookupFunction(index, info);
}