Make frame time in Renderer a property, update TestGame.
This commit is contained in:
@@ -30,6 +30,7 @@ namespace DaggerFramework.Rendering
|
||||
/// </summary>
|
||||
public abstract int TargetFps { get; set; }
|
||||
public abstract bool VSync { get; set; }
|
||||
public double FrameTime => GetFrameTime();
|
||||
|
||||
// WINDOW
|
||||
/// <summary>
|
||||
@@ -52,6 +53,7 @@ namespace DaggerFramework.Rendering
|
||||
protected abstract void SetWindowTitle(string title);
|
||||
protected abstract void SetWindowVSync(bool value);
|
||||
protected abstract void SetTargetFps(int fps);
|
||||
protected abstract double GetFrameTime();
|
||||
protected abstract int GetMonitorWidth(int monitorId);
|
||||
protected abstract int GetMonitorHeight(int monitorId);
|
||||
protected abstract int GetCurrentMonitor();
|
||||
@@ -76,7 +78,6 @@ namespace DaggerFramework.Rendering
|
||||
/// </summary>
|
||||
/// <param name="color">Background color.</param>
|
||||
public abstract void ClearBackground(Color color);
|
||||
public abstract double GetFrameTime();
|
||||
|
||||
/// <summary>
|
||||
/// Loads the texture onto the GPU for later use in DrawTexture or other Texture related methods.
|
||||
|
||||
Reference in New Issue
Block a user