blob: 9b233ba0c9207df099225b679804c09d2730ce4a [file] [log] [blame]
ziadbbceddbc2018-06-19 13:57:15 -04001/*
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
Mike Kleinc0bd9f92019-04-23 12:05:21 -050011#include "include/core/SkMatrix44.h"
12#include "include/core/SkPoint3.h"
ziadbbceddbc2018-06-19 13:57:15 -040013
14SK_API void Sk3LookAt(SkMatrix44* dst, const SkPoint3& eye, const SkPoint3& center, const SkPoint3& up);
15SK_API bool Sk3Perspective(SkMatrix44* dst, float near, float far, float angle);
16SK_API void Sk3MapPts(SkPoint dst[], const SkMatrix44& m4, const SkPoint3 src[], int count);
17
18#endif
19