depth, normals i guess
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "tier1/interface.h"
|
||||
#include "tier0/platform.h"
|
||||
#include "icvar.h"
|
||||
#include "tier2/ifilesystem.h"
|
||||
|
||||
void CClientGameDLL::Init()
|
||||
{
|
||||
@@ -19,6 +20,7 @@ void CClientGameDLL::Init()
|
||||
|
||||
pEngineBridge->ConnectInterface(RENDER_CONTEXT_INTERFACE_VERSION, m_pRenderContext);
|
||||
pEngineBridge->ConnectInterface("MainWindow", m_pGameWindow);
|
||||
pEngineBridge->ConnectInterface(FILESYSTEM_INTERFACE_VERSION, filesystem);
|
||||
pEngineBridge->Init();
|
||||
m_pBridge = pEngineBridge;
|
||||
}
|
||||
|
||||
@@ -53,12 +53,16 @@ extern "C" void FunnyMain( int argc, char **argv )
|
||||
g_pClientGame->Init();
|
||||
|
||||
|
||||
double fPrevious = Plat_GetTime();
|
||||
for (;;) {
|
||||
g_pWindowManager->Frame(0);
|
||||
g_pServerGame->m_pBridge->Frame(0);
|
||||
g_pClientGame->m_pBridge->Frame(0);
|
||||
double fCurrent = Plat_GetTime();
|
||||
double fDelta = fCurrent-fPrevious;
|
||||
fPrevious = fCurrent;
|
||||
g_pWindowManager->Frame(fDelta);
|
||||
g_pServerGame->m_pBridge->Frame(fDelta);
|
||||
g_pClientGame->m_pBridge->Frame(fDelta);
|
||||
|
||||
g_pRenderContext->Frame(0);
|
||||
g_pRenderContext->Frame(fDelta);
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user