2018-06-19 17:57:15 +00:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "include/core/SkMatrix44.h"
|
|
|
|
#include "include/core/SkPoint3.h"
|
2018-06-19 17:57:15 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|