added mesh rendering
This commit is contained in:
@@ -5,19 +5,23 @@
|
||||
#include "physics.h"
|
||||
|
||||
void *g_serverdll;
|
||||
ConVar g_tickrate("tickrate","64",FCVAR_PROTECTED);
|
||||
float g_fAccumulator = 0;
|
||||
|
||||
void IServer::LoadGame( const char *psz )
|
||||
{
|
||||
#ifdef __WIN32__
|
||||
g_serverdll = Plat_LoadLibrary(CUtlString("%s/bin/server.dll", psz));
|
||||
#endif
|
||||
#ifdef __linux__
|
||||
g_serverdll = Plat_LoadLibrary(CUtlString("%s/bin/libserver.so", psz));
|
||||
#endif
|
||||
void (*GameLoadfn)() = (void(*)())Plat_GetProc(g_serverdll, "IGame_Load");
|
||||
if (!GameLoadfn)
|
||||
Plat_FatalErrorFunc("IGame_Load not found in libserver.so\n");
|
||||
GameLoadfn();
|
||||
};
|
||||
|
||||
ConVar g_tickrate("tickrate","64",FCVAR_PROTECTED);
|
||||
float g_fAccumulator = 0;
|
||||
|
||||
void IServer::Think( float fDelta )
|
||||
{
|
||||
g_fAccumulator += fDelta;
|
||||
|
||||
Reference in New Issue
Block a user