summaryrefslogtreecommitdiff
path: root/include/game.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-01-16 01:49:19 +0100
committerTreeki <treeki@gmail.com>2012-01-16 01:49:19 +0100
commit663c7538e18aaeeb460cffd7700e8caff1420f8a (patch)
tree798f985aa9337d27466a962744dddba693b7a8ea /include/game.h
parent83729d2427ebb9a8563dce8ca3c8c19fb9f71c4a (diff)
downloadkamek-663c7538e18aaeeb460cffd7700e8caff1420f8a.tar.gz
kamek-663c7538e18aaeeb460cffd7700e8caff1420f8a.zip
some maths stuff
Diffstat (limited to '')
-rwxr-xr-xinclude/game.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/game.h b/include/game.h
index 0871eb1..e0c2eea 100755
--- a/include/game.h
+++ b/include/game.h
@@ -18,6 +18,8 @@ inline T max(T one, T two) { return (one > two) ? one : two; }
template <typename T>
inline T clamp(T value, T one, T two) { return (value < one) ? one : ((value > two) ? two : value); }
+#define M_PI 3.14159265358979323846
+#define M_PI_2 (M_PI / 2)
extern "C" {
int strlen(const char *str);
@@ -28,6 +30,8 @@ float atan2(float y, float x);
float cos(float x);
float sin(float x);
+float ceil(float x);
+float floor(float x);
}
bool DVD_Start();
@@ -2457,5 +2461,8 @@ extern int currentScreenSizeID;
extern float GlobalScreenWidth, GlobalScreenHeight;
+extern u32 GlobalTickCount;
+
+
#endif