summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-07-28 09:22:49 -0700
committerEric Anholt <eric@anholt.net>2009-07-28 15:38:55 -0700
commitcf9ea02f627fe946d87ea543aa6a1bcf913e04fb (patch)
treeb8eec5c32e2e8f1ae24c4733d90ccdd98e3b0836
parent047e314218210d4471bbdee4e96f1889d903bcd9 (diff)
Add gluSub4m_4m that was declared but not implemented.
-rw-r--r--include/glu3_scalar.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/glu3_scalar.h b/include/glu3_scalar.h
index fdb01f7..eadc6d4 100644
--- a/include/glu3_scalar.h
+++ b/include/glu3_scalar.h
@@ -143,6 +143,18 @@ extern inline GLUmat4 gluAdd4m_4m(const GLUmat4 *m1, const GLUmat4 *m2)
return result;
}
+extern inline GLUmat4 gluSub4m_4m(const GLUmat4 *m1, const GLUmat4 *m2)
+{
+ GLUmat4 result;
+
+ result.col[0] = gluSub4v_4v(& m1->col[0], & m2->col[0]);
+ result.col[1] = gluSub4v_4v(& m1->col[1], & m2->col[1]);
+ result.col[2] = gluSub4v_4v(& m1->col[2], & m2->col[2]);
+ result.col[3] = gluSub4v_4v(& m1->col[3], & m2->col[3]);
+
+ return result;
+}
+
extern inline GLfloat gluDot4_4v(const GLUvec4 *v1, const GLUvec4 *v2)
{
return v1->values[0] * v2->values[0]