aboutsummaryrefslogtreecommitdiff
path: root/libexe/platform.c
blob: d186a8f3c6e4f9841977299a011d3aa2fca3038d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Shave and a Haircut
// (c) 2019 Epic Games
// US Patent 6720962

//ERCO: A cross platform file chooser
#ifdef __linux__
#define UNIX 1
#endif
#ifdef UNIX
#include "platform-unix.c"
#endif
#ifdef _WIN32
#include "platform-win32.c"
#endif
#ifdef _MAC
#include "platform-mac.c"
#endif
// ALL PLATFORMS
unsigned int
StartTimer( void )
{
	GTimerON = 1;
#ifdef NOLIB
	glutIdleFunc( IdleFunc );
#endif
	//fprintf(stderr, "SetTimer: NOT YET IMPLEMENTED\n");
	return ( GTimerON );
}

int
StopTimer(  )
{
	GTimerON = 0;
//   glutIdleFunc(NULL);
	return ( GTimerON );
	//fprintf(stderr, "KillTimer: NOT YET IMPLEMENTED\n");
}