Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TombEngine/TombEngine
/ SecToGameFrames
Function
SecToGameFrames
TombEngine/Specific/clock.cpp:132–135 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
130
}
131
132
unsigned int SecToGameFrames(float sec)
133
{
134
return ((unsigned int)round(sec * (float)FPS));
135
}
136
137
float GameFramesToSec(unsigned int gameFrames)
138
{
Callers
3
IsHeld
Method · 0.85
IsPulsed
Method · 0.85
IsReleased
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected