mesa: Add function to calculate an orthographic projection

Graphics / Mesa 3D Graphics Library / Mesa - Ian Romanick [intel.com] - 14 May 2020 15:35 UTC

Unlike the existing _math_matrix_ortho, the new _math_float_ortho function just stores the calculated matrix in an array of floats. It does not multiply the new matrix with data already stored.

text data bss dec hex filename 12243486 1344936 1290748 14879170 e309c2 before/lib64/dri/i965_dri.so 12243510 1344936 1290748 14879194 e309da after/lib64/dri/i965_dri.so

29f10ede71f mesa: Add function to calculate an orthographic projection
src/mesa/math/m_matrix.c | 42 ++++++++++++++++++++++++++++++++----------
src/mesa/math/m_matrix.h | 6 ++++++
2 files changed, 38 insertions(+), 10 deletions(-)

Upstream: cgit.freedesktop.org


  • Share