summaryrefslogtreecommitdiff
path: root/MapTool/t3d/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'MapTool/t3d/common.h')
-rw-r--r--MapTool/t3d/common.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/MapTool/t3d/common.h b/MapTool/t3d/common.h
new file mode 100644
index 0000000..15b65b8
--- /dev/null
+++ b/MapTool/t3d/common.h
@@ -0,0 +1,24 @@
+#ifndef T3DCOMMON_H
+#define T3DCOMMON_H
+
+struct Vec {
+ float x, y, z;
+};
+
+struct Vec2 {
+ float x, y;
+};
+
+struct Triangle {
+ Vec vertex[3];
+ Vec2 texcoord[3];
+ Vec normal[3];
+};
+
+struct Quad {
+ Vec vertex[4];
+ Vec2 texcoord[4];
+ Vec normal[4];
+};
+
+#endif // T3DCOMMON_H