sdlSetLogOutputFunction function
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.1.3.
\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 = libSdl3.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);
}