public GLApplication(GLContextParams contextParams) { this.window = new GLFWWindow(contextParams); this.window.Initialize += this.WindowInternal_Initialize; this.window.Shutdown += this.WindowInternal_Shutdown; this.window.Idle += this.WindowInternal_Idle; this.TargetElapsedTime = TimeSpan.FromTicks(TimeSpan.TicksPerSecond / 60); this.MaxElapsedTime = TimeSpan.FromTicks(TimeSpan.TicksPerSecond / 10); }
internal GLApplication(IGLWindowInternal window) { this.window = window; this.window.Initialize += this.WindowInternal_Initialize; this.window.Shutdown += this.WindowInternal_Shutdown; this.window.Idle += this.WindowInternal_Idle; this.TargetElapsedTime = TimeSpan.FromTicks(TimeSpan.TicksPerSecond / 60); this.MaxElapsedTime = TimeSpan.FromTicks(TimeSpan.TicksPerSecond / 10); }