示例#1
0
        public override bool setEyeProjection(int profileID, EyewearDevice.EyeID eyeID, Matrix4x4 projectionMatrix)
        {
            float[] array = new float[16];
            for (int i = 0; i < 16; i++)
            {
                array[i] = projectionMatrix[i];
            }
            IntPtr intPtr   = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(float)) * array.Length);
            bool   arg_4F_0 = VuforiaWrapper.Instance.EyewearCPMSetEyeProjection(profileID, (int)eyeID, intPtr) == 1;

            Marshal.FreeHGlobal(intPtr);
            return(arg_4F_0);
        }
示例#2
0
        public override Matrix4x4 getEyeProjection(int profileID, EyewearDevice.EyeID eyeID)
        {
            float[] array  = new float[16];
            IntPtr  intPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(float)) * array.Length);

            VuforiaWrapper.Instance.EyewearCPMGetEyeProjection(profileID, (int)eyeID, intPtr);
            Marshal.Copy(intPtr, array, 0, array.Length);
            Matrix4x4 identity = Matrix4x4.identity;

            for (int i = 0; i < 16; i++)
            {
                identity[i] = array[i];
            }
            Marshal.FreeHGlobal(intPtr);
            return(identity);
        }
 public override bool setEyeProjection(int profileID, EyewearDevice.EyeID eyeID, Matrix4x4 projectionMatrix)
 {
     return(false);
 }
 public override Matrix4x4 getEyeProjection(int profileID, EyewearDevice.EyeID eyeID)
 {
     return(Matrix4x4.zero);
 }
 public override Matrix4x4 getCameraToEyePose(int profileID, EyewearDevice.EyeID eyeID)
 {
     return(Matrix4x4.zero);
 }
示例#6
0
 public abstract bool setEyeProjection(int profileID, EyewearDevice.EyeID eyeID, Matrix4x4 projectionMatrix);
示例#7
0
 public abstract bool setCameraToEyePose(int profileID, EyewearDevice.EyeID eyeID, Matrix4x4 projectionMatrix);
示例#8
0
 public abstract Matrix4x4 getEyeProjection(int profileID, EyewearDevice.EyeID eyeID);
示例#9
0
 public abstract Matrix4x4 getCameraToEyePose(int profileID, EyewearDevice.EyeID eyeID);