示例#1
0
        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);
        }
示例#2
0
        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);
        }