зеркало из https://github.com/stride3d/SDL2-CS.git
SDL_Log[Get|Set]OutputFunction
This commit is contained in:
Родитель
9339b5514c
Коммит
2377195ecc
22
src/SDL2.cs
22
src/SDL2.cs
|
@ -250,6 +250,13 @@ namespace SDL2
|
|||
SDL_NUM_LOG_PRIORITIES
|
||||
}
|
||||
|
||||
public delegate void SDL_LogOutputFunction(
|
||||
IntPtr userdata, // void*
|
||||
int category,
|
||||
SDL_LogPriority priority,
|
||||
IntPtr message // const char*
|
||||
);
|
||||
|
||||
[DllImport(nativeLibName)]
|
||||
public static extern void SDL_Log(
|
||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
||||
|
@ -342,8 +349,19 @@ namespace SDL2
|
|||
[DllImport(nativeLibName)]
|
||||
public static extern void SDL_LogResetPriorities();
|
||||
|
||||
// TODO: SDL_LogGetOutputFunction
|
||||
// TODO: SDL_LogSetOutputFunction
|
||||
/* userdata refers to a void* */
|
||||
[DllImport(nativeLibName)]
|
||||
public static extern void SDL_LogGetOutputFunction(
|
||||
ref SDL_LogOutputFunction callback,
|
||||
ref IntPtr userdata
|
||||
);
|
||||
|
||||
/* userdata refers to a void* */
|
||||
[DllImport(nativeLibName)]
|
||||
public static extern void SDL_LogSetOutputFunction(
|
||||
SDL_LogOutputFunction callback,
|
||||
IntPtr userdata
|
||||
);
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче