summaryrefslogtreecommitdiff
path: root/MapTool/t3d/common.h
blob: 15b65b85479be6b51c98e4263103aea401bb7dfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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