From c068f22329d5cc722622a2183bbb22eef2093df7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 24 Aug 2026 11:16:07 +0200 Subject: initial import --- src/parsec/include/sys_subh.h | 46 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/parsec/include/sys_subh.h (limited to 'src/parsec/include/sys_subh.h') diff --git a/src/parsec/include/sys_subh.h b/src/parsec/include/sys_subh.h new file mode 100644 index 0000000..fc8b600 --- /dev/null +++ b/src/parsec/include/sys_subh.h @@ -0,0 +1,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_ + + -- cgit v1.2.3