Beispiel #1
0
        /// <summary>
        /// Allocates thread local data to allow the current thread to call ODE.
        /// </summary>
        /// <param name="allocateFlags">Specifies thread allocation options.</param>
        public static void AllocateDataForThread(AllocateDataFlags allocateFlags)
        {
            var result = NativeMethods.dAllocateODEDataForThread(allocateFlags);

            if (result == 0)
            {
                throw new InsufficientMemoryException("The requested data could not be allocated.");
            }
        }
Beispiel #2
0
 internal static extern int dAllocateODEDataForThread(AllocateDataFlags uiAllocateFlags);