Primer commit
This commit is contained in:
27
jgame.h
Executable file
27
jgame.h
Executable 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();
|
||||
Reference in New Issue
Block a user