aboutsummaryrefslogtreecommitdiff
path: root/src/parsec/include/sys_subh.h
blob: fc8b6007a64e104e7f02cb730a7119d16ae252a0 (plain)
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
38
39
40
41
42
43
44
45
46
/*
 * PARSEC HEADER: sys_subh.h
 */

#ifndef _SYS_SUBH_H_
#define _SYS_SUBH_H_


// ----------------------------------------------------------------------------
// SYSTEM SUBSYSTEM (SYS) system-dependent function declarations              -
// ----------------------------------------------------------------------------


// init reference frame counting
void		SYSs_InitRefFrameCount();

// get current reference frame count
refframe_t	SYSs_GetRefFrameCount();

// pause reference frame counting
void		SYSs_PauseRefFrameCount();

// resume reference frame counting
void		SYSs_ResumeRefFrameCount();

// wait for specified number of reference frames
void		SYSs_Wait( refframe_t refframes );

// called once per frame to pass control to a platform-specific handler
int			SYSs_Yield();

// check if enough memory to boot game proper
void		SYSs_CheckMemory();

// check and execute command line options
void		SYSs_CheckCommandLine( int argc, char **argv );


// frame timer install/deinstall
int	SYSs_InitFrameTimer();
int	SYSs_KillFrameTimer();


#endif // _SYS_SUBH_H_