ziadb | bceddbc | 2018-06-19 13:57:15 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #ifndef Sk3D_DEFINED |
| 9 | #define Sk3D_DEFINED |
| 10 | |
| 11 | #include "SkPoint3.h" |
| 12 | #include "SkMatrix44.h" |
| 13 | |
| 14 | SK_API void Sk3LookAt(SkMatrix44* dst, const SkPoint3& eye, const SkPoint3& center, const SkPoint3& up); |
| 15 | SK_API bool Sk3Perspective(SkMatrix44* dst, float near, float far, float angle); |
| 16 | SK_API void Sk3MapPts(SkPoint dst[], const SkMatrix44& m4, const SkPoint3 src[], int count); |
| 17 | |
| 18 | #endif |
| 19 | |