summaryrefslogtreecommitdiff
path: root/src/core/tris.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/tris.h')
-rw-r--r--src/core/tris.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/core/tris.h b/src/core/tris.h
new file mode 100644
index 0000000..1f4208f
--- /dev/null
+++ b/src/core/tris.h
@@ -0,0 +1,17 @@
+#ifndef _SOFTSHADEROOM_TRIS_H_
+#define _SOFTSHADEROOM_TRIS_H_
+
+#include "../util/type.h"
+
+/* 用索引表示的三角形,在一系列顶点中索引 */
+typedef union Triangle
+{
+ uint v[3];
+ struct {
+ uint v1, v2, v3;
+ };
+} Triangle;
+
+
+
+#endif \ No newline at end of file