Exemplo n.º 1
0
        public static IntPtr AnchorHandle(this ARAnchor anchor)
        {
            NativePointerStruct info = (NativePointerStruct)
                                       Marshal.PtrToStructure(
                anchor.nativePtr,
                typeof(NativePointerStruct));

            return(info.AnchorHandle);
        }
        public static IntPtr FrameHandle(this XRCameraFrame frame)
        {
            NativePointerStruct info = (NativePointerStruct)
                                       Marshal.PtrToStructure(
                frame.nativePtr,
                typeof(NativePointerStruct));

            return(info.FrameHandle);
        }
Exemplo n.º 3
0
        public static IntPtr SessionHandle(this ARSession session)
        {
            NativePointerStruct info = (NativePointerStruct)
                                       Marshal.PtrToStructure(
                session.subsystem.nativePtr,
                typeof(NativePointerStruct));

            return(info.SessionHandle);
        }
Exemplo n.º 4
0
        public static IntPtr PlaneHandle(this ARPlane plane)
        {
            NativePointerStruct info = (NativePointerStruct)
                                       Marshal.PtrToStructure(
                plane.nativePtr,
                typeof(NativePointerStruct));

            return(info.PlaneHandle);
        }
        public static IntPtr AnchorHandle(this ARReferencePoint referencePoint)
        {
            NativePointerStruct info = (NativePointerStruct)
                                       Marshal.PtrToStructure(
                referencePoint.nativePtr,
                typeof(NativePointerStruct));

            return(info.AnchorHandle);
        }
        public static IntPtr SessionHandle(this ARSession session)
        {
            if (session.subsystem == null || session.subsystem.nativePtr == null)
            {
                return(IntPtr.Zero);
            }

            NativePointerStruct info = (NativePointerStruct)
                                       Marshal.PtrToStructure(
                session.subsystem.nativePtr,
                typeof(NativePointerStruct));

            return(info.SessionHandle);
        }