skia2/platform_tools
Florin Malita 4abf558c9f [androidkit] Relative-sized cube sample
Update the cube sample to be centered and sized relative to the target
surface.

Also simplify projection handling:

  - pre-compute a full view matrix in onSurfaceInitialized()
  - set the origin to the surface center
  - compute perspective and camera transforms in local coordinates
    (instead of unit view cube)

Also fix (invert) fling Y direction.

Change-Id: I48a3d0b4547812fb3c9b49a9842fb18c0ed0d863
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/413436
Reviewed-by: Jorge Betancourt <jmbetancourt@google.com>
2021-06-01 14:33:14 +00:00
..
android [androidkit] Relative-sized cube sample 2021-06-01 14:33:14 +00:00
debugging Add SkSpan support to the Skia LLDB visualizer. 2020-12-22 18:10:12 +00:00
ios Reland "Add launch screen to iOS apps" 2019-09-05 14:05:08 +00:00
libraries/include SkAR: drawing text, shapes, rotation modes enabled, translating objects 2018-06-19 19:10:54 +00:00