Sk3D.h 523 B

12345678910111213141516171819
  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. #ifndef Sk3D_DEFINED
  8. #define Sk3D_DEFINED
  9. #include "SkPoint3.h"
  10. #include "SkMatrix44.h"
  11. SK_API void Sk3LookAt(SkMatrix44* dst, const SkPoint3& eye, const SkPoint3& center, const SkPoint3& up);
  12. SK_API bool Sk3Perspective(SkMatrix44* dst, float near, float far, float angle);
  13. SK_API void Sk3MapPts(SkPoint dst[], const SkMatrix44& m4, const SkPoint3 src[], int count);
  14. #endif