Primer commit

This commit is contained in:
Raimon Zamora
2014-12-30 22:46:46 +01:00
commit 4a359c46f5
33 changed files with 2778 additions and 0 deletions

27
jgame.h Executable file
View File

@@ -0,0 +1,27 @@
#pragma once
#include "SDL2/SDL.h"
#ifndef NDEBUG
#ifndef DPRINT(text, ...)
#define DPRINT(text, ...) dprintf(__FILE__, __LINE__, text, __VA_ARGS__)
void dprintf(const char* szFile, long lLine, const char* fmt, ...);
#endif
#else // #ifdef NDEBUG
#ifndef DPRINT(text, ...)
#define DPRINT(text, ...) ((void)0)
#endif
#endif
void JG_Init();
void JG_Finalize();
void JG_QuitSignal();
bool JG_Quitting();
void JG_SetUpdateTicks(Uint32 milliseconds);
bool JG_ShouldUpdate();
Uint32 JG_GetCycleCounter();