]> Dogcows Code - chaz/rasterize/blobdiff - mat.h
add opengl support
[chaz/rasterize] / mat.h
diff --git a/mat.h b/mat.h
index c188723346fce7faeec94210a2eca2d9a61fa042..870832829dd37719202235b7bd7e30e916228352 100644 (file)
--- a/mat.h
+++ b/mat.h
@@ -74,6 +74,16 @@ mat_t mat_new2(vec_t a, vec_t b, vec_t c, vec_t d)
                              S(0.0), S(0.0), S(0.0), S(1.0))
 
 
+/*
+ * Get a pointer to the matrix data.
+ */
+INLINE_MAYBE
+const scal_t* mat_data(const mat_t* m)
+{
+    return &m->v[0].x;
+}
+
+
 /*
  * Get a column vector (can also access the vector array directly).
  */
This page took 0.021004 seconds and 4 git commands to generate.