Exemple #1
0
 public static void Occluded(IntPtr scene,
                             RayStruct1 *ray)
 {
     NativeMethods.rtcOccluded(scene,
                               ray);
     #if DEBUG
     CheckLastError();
     #endif
 }
Exemple #2
0
 public static void Intersect(IntPtr scene,
                              RayStruct1 *ray)
 {
     NativeMethods.rtcIntersect(scene,
                                ray);
     #if DEBUG
     CheckLastError();
     #endif
 }
Exemple #3
0
        /// <summary>
        /// Performs an occlusion query on this scene.
        /// </summary>
        /// <param name="ray">The ray structure to use.</param>
        public unsafe void Occlusion(RayStruct1 *ray)
        {
            #if DEBUG
            CheckDisposed();

            if (!AlgorithmFlags.HasFlag(AlgorithmFlags.Intersect1))
            {
                throw new InvalidOperationException("AlgorithmFlags.Intersect1 not set.");
            }
            #endif

            RTC.Occluded(NativePtr, ray);
        }
Exemple #4
0
 public static extern void rtcOccluded(IntPtr scene,
                                       RayStruct1 *ray);
Exemple #5
0
 public static extern void rtcIntersect(IntPtr scene,
                                        RayStruct1 *ray);