internal void DoDraw(AppTime time) { var(width, height) = _renderer.GetDrawableSize(); if (_drawableWidth != width || _drawableHeight != height) { _drawableWidth = width; _drawableHeight = height; OnDrawableSizeChanged(width, height); } Draw(time); GraphicsDevice.Commit(); _renderer.Present(); }
protected AppLoop() { _time = new AppTime(); }
protected abstract void Draw(AppTime time);
protected abstract void Update(AppTime time);
internal void DoUpdate(AppTime time) { Update(time); }