projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
writing obj loader
[dosdemo]
/
src
/
vmath.h
diff --git
a/src/vmath.h
b/src/vmath.h
index
d8c6be2
..
7e35cc8
100644
(file)
--- a/
src/vmath.h
+++ b/
src/vmath.h
@@
-1,6
+1,8
@@
#ifndef VMATH_H_
#define VMATH_H_
#ifndef VMATH_H_
#define VMATH_H_
+#include <math.h>
+
#ifdef __GNUC__
#define INLINE __inline
#ifdef __GNUC__
#define INLINE __inline
@@
-11,6
+13,7
@@
#define INLINE
#endif
#define INLINE
#endif
+typedef struct { float x, y; } vec2_t;
typedef struct { float x, y, z; } vec3_t;
typedef struct { float x, y, z, w; } vec4_t;
typedef struct { float x, y, z; } vec3_t;
typedef struct { float x, y, z, w; } vec4_t;