private void RenderGui(RenderComposer composer) { ImGui.NewFrame(); ImGui.Begin("TexturaMagna!", ImGuiWindowFlags.AlwaysAutoResize); ImGui.InputInt("Rendered", ref _rendered); ImGui.Text("Camera " + Engine.Renderer.Camera.Position); ImGui.Text("Scroll to zoom, hold control (left) to fast!"); ImGui.End(); composer.RenderToolsMenu(_menu); _menu.Render(composer); composer.RenderUI(); }
private void RenderGui(RenderComposer composer) { composer.SetUseViewMatrix(false); composer.SetDepthTest(false); ImGui.NewFrame(); ImGui.Begin("InfoBox", ImGuiWindowFlags.AlwaysAutoResize); ImGui.Text("Camera " + Engine.Renderer.Camera.Position + " | @z: " + Engine.Renderer.Camera.Zoom); ImGui.Text("RenderTileCount [" + _rendered + "]"); ImGui.End(); composer.RenderToolsMenu(_menu); _menu.Render(composer); composer.RenderUI(); }
public void Draw(RenderComposer composer) { composer.SetUseViewMatrix(false); composer.RenderSprite(new Vector3(0, 0, 0), Engine.Renderer.CurrentTarget.Size, Color.CornflowerBlue); composer.RenderToolsMenu(); }
public void Draw(RenderComposer composer) { RenderMap(composer); composer.RenderToolsMenu(); }