Esempio n. 1
0
        public static void Render(float Dt)
        {
            if (!IsOpen)
            {
                return;
            }

            if (RT == null)
            {
                InitGraphics();
            }

            RT.Bind();
            RT.Clear(ClearColor);
            RenderContent(Dt);
            RT.Unbind();

            float Y = (0 - RT.Height) + (NanoVG.Height * ConsoleHeightRatio) + ScrollAmt;

            NanoVG.BeginFrame();
            NanoVG.DrawTexturedRect(RT_NVG, 0, (int)Y, RT.Width, RT.Height);
            NanoVG.EndFrame();
        }