mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Bump euclid to 0.22
- Also updates raqote to latest with an upgrade of font-kit to 0.11 applied on as a patch - Update lyon_geom to the latest version Major change: - All matrices are now stored in row major order. This means that parameters to rotation functions no longer should be negated. - `post_...()` functions are now named `then()`. `pre_transform()` is removed, so `then()` is used and the order of operations changed.
This commit is contained in:
parent
4f355f5877
commit
423cc34cb0
56 changed files with 233 additions and 220 deletions
|
@ -57,7 +57,7 @@ impl XRView {
|
|||
viewport_index: usize,
|
||||
to_base: &BaseTransform,
|
||||
) -> DomRoot<XRView> {
|
||||
let transform: RigidTransform3D<f32, V, BaseSpace> = to_base.pre_transform(&view.transform);
|
||||
let transform: RigidTransform3D<f32, V, BaseSpace> = view.transform.then(&to_base);
|
||||
let transform = XRRigidTransform::new(global, cast_transform(transform));
|
||||
|
||||
reflect_dom_object(
|
||||
|
@ -92,7 +92,7 @@ impl XRViewMethods for XRView {
|
|||
if self.proj.get().is_null() {
|
||||
let cx = self.global().get_cx();
|
||||
// row_major since euclid uses row vectors
|
||||
let proj = self.view.projection.to_row_major_array();
|
||||
let proj = self.view.projection.to_array();
|
||||
create_typed_array(cx, &proj, &self.proj);
|
||||
}
|
||||
NonNull::new(self.proj.get()).unwrap()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue