Ejemplo n.º 1
0
        public void Render()
        {
            using var batch = m_renderer2D.Use();
            m_batch         = batch;

            m_script.Render();
        }
Ejemplo n.º 2
0
        protected override void EndRenderStep()
        {
            Curtain?.Render();

            using var batch = m_renderer.Use();
            batch.SetFont(null);
            batch.SetFontSize(12);
            batch.SetFillColor(Vector4.One);
            batch.SetTextAlign(Anchor.BottomLeft);
            batch.FillString($"v{typeof(NscClient).Assembly.GetName().Version.ToString()} - {string.Join(", ", UserInputService.InputModes.Explode()).ToLower()}", 5, Window.Height - 5);
            batch.SetTextAlign(Anchor.BottomRight);
            batch.FillString($"{Host.TempFps}", Window.Width - 5, Window.Height - 5);

            base.EndRenderStep();
        }