Fixes from fixing the mac port

This commit is contained in:
Henrik Rydgard
2012-07-18 12:03:51 +02:00
parent 9d04a56836
commit 4fb4124e0a
6 changed files with 9 additions and 14 deletions
-9
View File
@@ -4,16 +4,7 @@
#include <math.h>
#include <string.h> // memset
inline float sqr(float f) {return f*f;}
inline float sqr_signed(float f) {return f<0 ? -f*f : f*f;}
#ifndef PI
#define PI (3.141592654f)
#endif
#define PI_INV (0.318309886f)
class Matrix4x4;
// class Quaternion;
// Hm, doesn't belong in this file.
class Vec4 {
+3
View File
@@ -4,6 +4,9 @@
#include <math.h>
#include <string.h>
inline float sqr(float f) {return f*f;}
inline float sqr_signed(float f) {return f<0 ? -f*f : f*f;}
typedef unsigned short float16;
// This ain't a 1.5.10 float16, it's a stupid hack format where we chop 16 bits off a float.