Initial import of Red Planet v4.10 Win32 source
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>
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user