Marshal getCustomDebugColor as bool.

This commit is contained in:
AndresTraks 2016-11-26 15:11:41 +02:00
Родитель 781829ff02
Коммит c4afeaad9f
2 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -126,10 +126,10 @@ namespace BulletSharp
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity] [DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern IntPtr btCollisionDispatcher_getNearCallback(IntPtr obj); static extern IntPtr btCollisionDispatcher_getNearCallback(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity] [DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btCollisionDispatcher_registerCollisionCreateFunc(IntPtr obj, BroadphaseNativeType proxyType0, BroadphaseNativeType proxyType1, IntPtr createFunc); static extern void btCollisionDispatcher_registerCollisionCreateFunc(IntPtr obj, BroadphaseNativeType proxyType0, BroadphaseNativeType proxyType1, IntPtr createFunc);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity] [DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btCollisionDispatcher_registerClosestPointsCreateFunc(IntPtr obj, BroadphaseNativeType proxyType0, BroadphaseNativeType proxyType1, IntPtr createFunc); static extern void btCollisionDispatcher_registerClosestPointsCreateFunc(IntPtr obj, BroadphaseNativeType proxyType0, BroadphaseNativeType proxyType1, IntPtr createFunc);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity] [DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btCollisionDispatcher_setCollisionConfiguration(IntPtr obj, IntPtr config); static extern void btCollisionDispatcher_setCollisionConfiguration(IntPtr obj, IntPtr config);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity] [DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btCollisionDispatcher_setDispatcherFlags(IntPtr obj, DispatcherFlags flags); static extern void btCollisionDispatcher_setDispatcherFlags(IntPtr obj, DispatcherFlags flags);

Просмотреть файл

@ -498,6 +498,7 @@ namespace BulletSharp
static extern float btCollisionObject_getContactProcessingThreshold(IntPtr obj); static extern float btCollisionObject_getContactProcessingThreshold(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity] [DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern float btCollisionObject_getContactStiffness(IntPtr obj); static extern float btCollisionObject_getContactStiffness(IntPtr obj);
[return: MarshalAs(UnmanagedType.I1)]
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity] [DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern bool btCollisionObject_getCustomDebugColor(IntPtr obj, out Vector3 colorRGB); static extern bool btCollisionObject_getCustomDebugColor(IntPtr obj, out Vector3 colorRGB);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity] [DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]