예제 #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);
 }