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); }
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); }
public abstract bool setEyeProjection(int profileID, EyewearDevice.EyeID eyeID, Matrix4x4 projectionMatrix);
public abstract bool setCameraToEyePose(int profileID, EyewearDevice.EyeID eyeID, Matrix4x4 projectionMatrix);
public abstract Matrix4x4 getEyeProjection(int profileID, EyewearDevice.EyeID eyeID);
public abstract Matrix4x4 getCameraToEyePose(int profileID, EyewearDevice.EyeID eyeID);