- GetTimeFloat is not renderer specific
This commit is contained in:
parent
bfe6bffd33
commit
49c9de350f
8 changed files with 7 additions and 20 deletions
|
|
@ -39,6 +39,7 @@
|
|||
#include "g_levellocals.h"
|
||||
#include "r_utility.h"
|
||||
#include "r_data/models/models.h"
|
||||
#include "i_time.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable:4244) // warning C4244: conversion from 'double' to 'float', possible loss of data
|
||||
|
|
@ -277,6 +278,11 @@ void FModelRenderer::RenderFrameModels(const FSpriteModelFrame *smf,
|
|||
}
|
||||
}
|
||||
|
||||
double FModelRenderer::GetTimeFloat()
|
||||
{
|
||||
return (double)I_msTime() * (double)TICRATE / 1000.;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void gl_LoadModels()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue