diff options
author | ziadb <ziadb@google.com> | 2018-06-19 13:57:15 -0400 |
---|---|---|
committer | Ziad Ben Hadj-Alouane <ziadb@google.com> | 2018-06-19 19:10:54 +0000 |
commit | bceddbcb72605343aca01638f64d7a8e8cb9792d (patch) | |
tree | ed4eaaec1011ca860cd2c750c2f241472543824b /include/utils | |
parent | 80452bee11ebe6708ea459ea34e526a44c04bdb0 (diff) |
SkAR: drawing text, shapes, rotation modes enabled, translating objects
To run this app, you need to create an out directory as such:
bin/gn gen out/arm64 --args='ndk="NDK_PATH" target_cpu="ABI"'
For now, the only supported ABI is arm64
Change-Id: I012f0c6a0550d80a0028f42177d5ca72974d848d
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/130980
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Ziad Ben Hadj-Alouane <ziadb@google.com>
Diffstat (limited to 'include/utils')
-rw-r--r-- | include/utils/Sk3D.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/utils/Sk3D.h b/include/utils/Sk3D.h new file mode 100644 index 0000000000..f18281185b --- /dev/null +++ b/include/utils/Sk3D.h @@ -0,0 +1,19 @@ +/* + * Copyright 2018 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef Sk3D_DEFINED +#define Sk3D_DEFINED + +#include "SkPoint3.h" +#include "SkMatrix44.h" + +SK_API void Sk3LookAt(SkMatrix44* dst, const SkPoint3& eye, const SkPoint3& center, const SkPoint3& up); +SK_API bool Sk3Perspective(SkMatrix44* dst, float near, float far, float angle); +SK_API void Sk3MapPts(SkPoint dst[], const SkMatrix44& m4, const SkPoint3 src[], int count); + +#endif + |