Exemple #1
0
        internal void Render()
        {
            if (!repaintRequired && nextRepaintTime > Ui.time)
            {
                return;
            }
            if (nextRepaintTime <= Ui.time)
            {
                nextRepaintTime = long.MaxValue;
            }
            OnRepaint();
            repaintRequired = false;
            if (rootGui.IsRebuildRequired())
            {
                rootGui.CalculateState(size.X, pixelsPerUnit);
            }

            MainRender();
            SDL.SDL_RenderPresent(renderer);
        }