diff options
author | Treeki <treeki@gmail.com> | 2011-03-12 23:17:12 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-03-12 23:17:12 +0100 |
commit | 7d4e4c0b34a613dd3c0220475ae4e448197522c1 (patch) | |
tree | 4f5cee367de3fdef4f9a7c84af59ffe76a2bb1c3 /MapTool/t3d/common.h | |
download | kamek-7d4e4c0b34a613dd3c0220475ae4e448197522c1.tar.gz kamek-7d4e4c0b34a613dd3c0220475ae4e448197522c1.zip |
initial commit. now I can start playing with stuff!
Diffstat (limited to 'MapTool/t3d/common.h')
-rw-r--r-- | MapTool/t3d/common.h | 24 |
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 |