diff options
author | Ansis Brammanis <brammanis@gmail.com> | 2015-08-13 15:34:08 +0300 |
---|---|---|
committer | Ansis Brammanis <brammanis@gmail.com> | 2015-08-24 18:41:49 -0400 |
commit | d5139107123b3cadcce2c80d4aea0ed3a6256683 (patch) | |
tree | af4f97c7f9a5c8d85fef28e9e6d564fb8ec33c25 /include/mbgl | |
parent | 5636eb86c1b2e5fe9c8533fd795b4dfd107bdd30 (diff) | |
download | qtlocation-mapboxgl-d5139107123b3cadcce2c80d4aea0ed3a6256683.tar.gz |
port mat4.perspective and mat4.rotate_x
Diffstat (limited to 'include/mbgl')
-rw-r--r-- | include/mbgl/util/mat4.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/util/mat4.hpp b/include/mbgl/util/mat4.hpp index 4279113d21..e59712ed0d 100644 --- a/include/mbgl/util/mat4.hpp +++ b/include/mbgl/util/mat4.hpp @@ -33,8 +33,10 @@ namespace matrix { void identity(mat4& out); void ortho(mat4& out, float left, float right, float bottom, float top, float near, float far); +void perspective(mat4& out, float fovy, float aspect, float near, float far); void copy(mat4& out, const mat4& a); void translate(mat4& out, const mat4& a, float x, float y, float z); +void rotate_x(mat4& out, const mat4& a, float rad); void rotate_z(mat4& out, const mat4& a, float rad); void scale(mat4& out, const mat4& a, float x, float y, float z); void multiply(mat4& out, const mat4& a, const mat4& b); |