small improvements and test code for manipulating vertices
This commit is contained in:
@@ -110,6 +110,9 @@ internal class OpenGLEngine : Engine
|
||||
{
|
||||
_window.Close();
|
||||
}
|
||||
|
||||
Time._secondsSinceStart = _window.Time;
|
||||
Time._deltaTime = deltaTime;
|
||||
|
||||
TemporaryMovementProcessing((float)deltaTime);
|
||||
TemporaryMouseProcessing();
|
||||
|
||||
12
src/EngineSharp.Core/EngineSharp.Core/Time.cs
Normal file
12
src/EngineSharp.Core/EngineSharp.Core/Time.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace EngineSharp.Core;
|
||||
|
||||
public static class Time
|
||||
{
|
||||
internal static double _deltaTime;
|
||||
internal static double _secondsSinceStart;
|
||||
|
||||
public static double DeltaTime => _deltaTime;
|
||||
public static float DeltaTimeF => (float)_deltaTime;
|
||||
public static double SecondsSinceStart => _secondsSinceStart;
|
||||
public static float SecondsSinceStartF => (float)_secondsSinceStart;
|
||||
}
|
||||
Reference in New Issue
Block a user