コード例 #1
0
        static void RenderContent(float Dt)
        {
            NanoVG.BeginFrame(RT.Width, RT.Height);
            //NanoVG.DrawRect(ClearColor, 0, 0, RT.Width, RT.Height);

            NanoVG.SetFont("clacon", LineHeight);
            NanoVG.TextAlign(TextAlign.TopLeft);

            string[] Lines = ConsoleLines.ToArray();
            for (int i = 0; i < Lines.Length; i++)
            {
                NanoVG.FillColor(Color.White);
                NanoVG.StyledText(0, LineHeight * i, Lines[i]);
            }

            NanoVG.FillColor(Color.Wheat);
            NanoVG.Text(0, LineHeight * MaxLines + 1, InputPrefix + Input + "_");
            NanoVG.EndFrame();
        }