aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/Sk3D.h
blob: 46bb5cce80263b239a1170dad4c87458c6bf72f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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"

void Sk3LookAt(SkMatrix44* dst, const SkPoint3& eye, const SkPoint3& center, const SkPoint3& up);
bool Sk3Perspective(SkMatrix44* dst, float near, float far, float angle);
void Sk3MapPts(SkPoint dst[], const SkMatrix44& m4, const SkPoint3 src[], int count);

#endif