sdlSetLogOutputFunction function log
void
sdlSetLogOutputFunction(
- Pointer<
NativeFunction< callback,SdlLogOutputFunction> > - Pointer<
NativeType> userdata
Replace the default log output function with one of your own.
\param callback an SDL_LogOutputFunction to call instead of the default.
\param userdata a pointer that is passed to callback.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.2.0.
\sa SDL_GetDefaultLogOutputFunction \sa SDL_GetLogOutputFunction
extern SDL_DECLSPEC void SDLCALL SDL_SetLogOutputFunction(SDL_LogOutputFunction callback, void *userdata)
Implementation
void sdlSetLogOutputFunction(
Pointer<NativeFunction<SdlLogOutputFunction>> callback,
Pointer<NativeType> userdata,
) {
final sdlSetLogOutputFunctionLookupFunction = _libSdl
.lookupFunction<
Void Function(
Pointer<NativeFunction<SdlLogOutputFunction>> callback,
Pointer<NativeType> userdata,
),
void Function(
Pointer<NativeFunction<SdlLogOutputFunction>> callback,
Pointer<NativeType> userdata,
)
>('SDL_SetLogOutputFunction');
return sdlSetLogOutputFunctionLookupFunction(callback, userdata);
}