depth, normals i guess

This commit is contained in:
2026-02-19 22:06:21 +02:00
parent 4dd2e13c48
commit 04b0f02e7f
18 changed files with 129 additions and 55 deletions

View File

@@ -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;
}

View File

@@ -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);
};
};