public void InitializeVolume(int voxelPower) { if (volumeHandle == IntPtr.Zero) { getVolumBoudingBoxCallback = new GetVolumBoudingBoxCallback(GetVolumBoudingBox); overlapBoxBlockingTestCallback = new OverlapBoxBlockingTestCallback(OverlapBoxBlockingTest); volumeHandle = CreateSVONVolume(voxelPower, getVolumBoudingBoxCallback, overlapBoxBlockingTestCallback); } }
private static unsafe extern IntPtr CreateSVONVolume(Int32 voxelPower, [MarshalAs(UnmanagedType.FunctionPtr)] GetVolumBoudingBoxCallback cbGetVolumBoudingBox, [MarshalAs(UnmanagedType.FunctionPtr)] OverlapBoxBlockingTestCallback cbOverlapBoxCheck);