r5sdk/r5dev/engine/sys_engine.cpp

85 lines
2.8 KiB
C++
Raw Normal View History

#include "core/stdafx.h"
#include "sys_engine.h"
///////////////////////////////////////////////////////////////////////////////
CEngine* g_pEngine = nullptr;
/*
//-----------------------------------------------------------------------------
// Purpose: Start initializing the engine.
2022-03-07 13:15:45 +01:00
// Output : Returns true on success, false on failure.
//-----------------------------------------------------------------------------
bool CEngine::Load(bool dedicated, const char* rootDir)
{
const int index = 1;
return CallVFunc<bool>(index, this, dedicated, rootDir);
}
//-----------------------------------------------------------------------------
// Purpose: Start to shutdown the engine.
//-----------------------------------------------------------------------------
2022-03-07 13:15:45 +01:00
void CEngine::Unload(void)
{
const int index = 2;
CallVFunc<void>(index, this);
}
//-----------------------------------------------------------------------------
// Purpose: Set the next dll engine state.
//-----------------------------------------------------------------------------
void CEngine::SetNextState(EngineState_t iNextState)
{
2022-03-07 13:15:45 +01:00
m_nNextDLLState = iNextState;
}
//-----------------------------------------------------------------------------
// Purpose: Get the dll engine state.
//-----------------------------------------------------------------------------
2022-03-07 13:15:45 +01:00
EngineState_t CEngine::GetState(void) const
{
2022-03-07 13:15:45 +01:00
return m_nDLLState;
}
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
2022-03-07 13:15:45 +01:00
void CEngine::Frame(void)
{
const int index = 5;
CallVFunc<void>(index, this);
}
//-----------------------------------------------------------------------------
// Purpose: Get engine frame time.
//-----------------------------------------------------------------------------
2022-03-07 13:15:45 +01:00
float CEngine::GetFrameTime(void) const
{
2022-03-07 13:15:45 +01:00
return m_flFrameTime;
}
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
2022-03-07 13:15:45 +01:00
float CEngine::GetPreviousTime(void) // I'm not sure if this is right, should double check.
{
const int index = 7;
return CallVFunc<float>(index, this);
}
2022-03-07 13:15:45 +01:00
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
__m128 __fastcall CEngine::GetCurTime(CEngine *thisPtr) const
{
return _mm_cvtpd_ps(_mm_cvtepi32_pd(_mm_cvtsi64_si128(thisPtr->m_flCurrentTime)));
}
//-----------------------------------------------------------------------------
// Purpose: Set dll state.
//-----------------------------------------------------------------------------
void CEngine::SetQuitting(EngineDllQuitting_t quitDllState)
{
const int index = 9;
CallVFunc<void>(index, this, quitDllState);
2022-03-07 13:15:45 +01:00
}
*/