Imports the current Win32 source for the pod-racing game 'Red Planet', built on the MUNGA engine and its L4 (Win32/DirectX) platform layer: - MUNGA / MUNGA_L4: cross-platform engine core and Win32 backend - RP / RP_L4: Red Planet game logic and Win32 application - DivLoader, Setup1: asset loader and installer project - lib, MUNGA_L4/openal, MUNGA_L4/sos: third-party audio dependencies Removed stale Subversion metadata and added .gitignore/.gitattributes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
44 lines
765 B
C++
44 lines
765 B
C++
#include "munga.h"
|
|
#pragma hdrstop
|
|
|
|
#include "time.h"
|
|
|
|
//#############################################################################
|
|
//########################### System Clock ##############################
|
|
//#############################################################################
|
|
//
|
|
SystemClock SystemClock::timer;
|
|
long SystemClock::ticksPerSecond = 1000;
|
|
|
|
long SystemClock::GetRTC()
|
|
{
|
|
static long time=0L;
|
|
return time++;
|
|
}
|
|
|
|
double SystemClock::GetHiRes()
|
|
{
|
|
static __int64 time = 0;
|
|
return (double)time++;
|
|
}
|
|
|
|
__int64 SystemClock::GetHiResTicks()
|
|
{
|
|
static __int64 time = 0;
|
|
return time++;
|
|
}
|
|
|
|
SystemClock::SystemClock()
|
|
{
|
|
pauseStart = 0L;
|
|
pauseTime = 0L;
|
|
}
|
|
|
|
void SystemClock::Shutdown()
|
|
{
|
|
}
|
|
|
|
float Get_Frame_Percent_Used()
|
|
{
|
|
return 0.5f;
|
|
} |