Пример #1
0
        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();
        }
Пример #2
0
 protected AppLoop()
 {
     _time = new AppTime();
 }
Пример #3
0
 protected abstract void Draw(AppTime time);
Пример #4
0
 protected abstract void Update(AppTime time);
Пример #5
0
 internal void DoUpdate(AppTime time)
 {
     Update(time);
 }