summaryrefslogtreecommitdiff
path: root/vertex.c
diff options
context:
space:
mode:
Diffstat (limited to 'vertex.c')
-rw-r--r--vertex.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/vertex.c b/vertex.c
index 970bbbc..92c6b0a 100644
--- a/vertex.c
+++ b/vertex.c
@@ -43,6 +43,16 @@ dupvertex(Vertex *v)
return nv;
}
+void
+swapvertex(Vertex *a, Vertex *b)
+{
+ Vertex t;
+
+ t = *a;
+ *a = *b;
+ *b = t;
+}
+
/*
* linear attribute interpolation
*/