#ifndef _GAME_H_
#define _GAME_H_
-#ifndef WIN32
#ifdef PLATFORM_MACOSX
#include <Carbon.h>
#include "Quicktime.h"
#endif
-#endif
//Jordan included glut.h
//#include <glut.h>
#include "WinInput.h"
#elif USE_SDL
#include "SDL.h"
-//#include "SDLInput.h"
+#include "SDLInput.h"
#else
#include "Macinput.h"
#endif
extern GLuint rabbittexture;
+#ifndef TRUE
+#define TRUE 1
+#endif
+
+#ifndef FALSE
+#define FALSE 0
+#endif
+
class Game
{
};
-#endif
\ No newline at end of file
+#ifndef __forceinline
+# ifdef __GNUC__
+# define __forceinline inline __attribute__((always_inline))
+# endif
+#endif
+
+static __forceinline void swap_gl_buffers(void)
+{
+#ifdef WIN32
+ extern HDC hDC;
+ SwapBuffers( hDC);
+#elif USE_SDL
+ SDL_GL_SwapBuffers();
+#elif PLATFORM_MACOSX
+ extern AGLContext gaglContext;
+ aglSwapBuffers(gaglContext);
+#else
+ #error define your platform.
+#endif
+}
+
+#ifdef __GNUC__
+#define LONGLONGCONST(x) (x##ll)
+#else
+#define LONGLONGCONST(x) (x)
+#endif
+
+#endif