m84: update utils/camera.rs
+#![allow(deprecated)]
use crate::prelude::*;
use crate::{scalar, Canvas, Matrix};
use skia_bindings as sb;
use skia_bindings::{Sk3DView, SkCamera3D, SkMatrix3D, SkPatch3D, SkPoint3D, SkUnit3D};
+#[deprecated(
+ since = "0.0.0",
+ note = "Skia now has support for a 4x matrix (core::M44) in core::Canvas."
+)]
#[derive(Copy, Clone, PartialEq, Default, Debug)]
#[repr(C)]
pub struct Unit3D {
@@ -37,6 +42,10 @@ impl Unit3D {
}
}
+#[deprecated(
+ since = "0.0.0",
+ note = "Skia now has support for a 4x matrix (core::M44) in core::Canvas."
+)]
#[derive(Copy, Clone, PartialEq, Default, Debug)]
#[repr(C)]
pub struct Point3D {
@@ -70,9 +79,17 @@ impl Point3D {
}
}
+#[deprecated(
+ since = "0.0.0",
+ note = "Skia now has support for a 4x matrix (core::M44) in core::Canvas."
+)]
pub type Vector3D = Point3D;
// note: Default is an empty matrix, and not the identity matrix, which is generated with reset()!
+#[deprecated(
+ since = "0.0.0",
+ note = "Skia now has support for a 4x matrix (core::M44) in core::Canvas."
+)]
#[derive(Clone, PartialEq, Default, Debug)]
#[repr(C)]
pub struct Matrix3D {
@@ -174,6 +191,10 @@ impl Matrix3D {
}
}
+#[deprecated(
+ since = "0.0.0",
+ note = "Skia now has support for a 4x matrix (core::M44) in core::Canvas."
+)]
#[derive(Clone, PartialEq, Debug)]
#[repr(C)]
pub struct Patch3D {
@@ -212,6 +233,10 @@ impl Patch3D {
}
}
+#[deprecated(
+ since = "0.0.0",
+ note = "Skia now has support for a 4x matrix (core::M44) in core::Canvas."
+)]
#[derive(Clone, PartialEq, Debug)]
#[repr(C)]
pub struct Camera3D {
@@ -260,6 +285,10 @@ impl Camera3D {
// Also note that the implementation uses interior pointers,
// so we let Skia do the allocation.
+#[deprecated(
+ since = "0.0.0",
+ note = "Skia now has support for a 4x matrix (core::M44) in core::Canvas."
+)]
pub type View3D = RefHandle<Sk3DView>;
unsafe impl Send for View3D {}
