Пример #1
0
    void Display()
    {
        SDL.SDL_SetRenderDrawColor(Renderer, 128, 128, 128, 255);
        SDL.SDL_RenderClear(Renderer);

        _gui.Draw();

        int offset = 0;

        foreach (var kvp in _countersByButtonId)
        {
            Printer.Instance.Print(120, offset * 25 + 6, kvp.Value.ToString(), Color.Black);
            offset++;
        }

        /*
         * Printer.Instance.Print(WindowSize[2] / 2,
         *                     WindowSize[3] / 2,
         *                     _textToShow,
         *                     Color.Black,
         *                     3.0f,
         *                     Printer.TextAlignment.CENTER);
         */

        SDL.SDL_RenderPresent(Renderer);
    }