diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-12-27 07:30:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-12-27 07:30:11 +0300 |
commit | c1e3041051f44916c896b0527b3a36937753360c (patch) | |
tree | 5591843f1435f27a7373a8ba3737987b37214c31 /source/blender/blenlib/intern | |
parent | 41ec1adb030361df1e31d9db121f683900a464f1 (diff) |
Comments: hints for perspective functions
Note which GL functions these are equivalent to.
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r-- | source/blender/blenlib/intern/math_geom.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_geom.c b/source/blender/blenlib/intern/math_geom.c index 38947e139ff..46d963ee268 100644 --- a/source/blender/blenlib/intern/math_geom.c +++ b/source/blender/blenlib/intern/math_geom.c @@ -3763,6 +3763,9 @@ void interp_barycentric_tri_v3(float data[3][3], float u, float v, float res[3]) /***************************** View & Projection *****************************/ +/** + * Matches `glOrtho` result. + */ void orthographic_m4(float matrix[4][4], const float left, const float right, const float bottom, const float top, const float nearClip, const float farClip) { @@ -3783,6 +3786,9 @@ void orthographic_m4(float matrix[4][4], const float left, const float right, co matrix[3][2] = -(farClip + nearClip) / Zdelta; } +/** + * Matches `glFrustum` result. + */ void perspective_m4(float mat[4][4], const float left, const float right, const float bottom, const float top, const float nearClip, const float farClip) { |