コード例 #1
0
ファイル: App.cs プロジェクト: fossabot/Sokol.NET
        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
ファイル: App.cs プロジェクト: fossabot/Sokol.NET
 protected abstract void Draw(AppTime time);
コード例 #4
0
ファイル: App.cs プロジェクト: fossabot/Sokol.NET
 protected abstract void Update(AppTime time);
コード例 #5
0
ファイル: App.cs プロジェクト: fossabot/Sokol.NET
 internal void DoUpdate(AppTime time)
 {
     Update(time);
 }