> For the complete documentation index, see [llms.txt](https://docs.flatredball.com/gum/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flatredball.com/gum/code/getting-started/setup/empty-project-before-adding-gum/brutal.md). Agents can also search and read this documentation through its [MCP server](https://docs.flatredball.com/gum/~gitbook/mcp).

# BRUTAL

## Introduction

Gum can be used in [BRUTAL](https://github.com/ahwootech/BRUTAL) projects by importing Gum's `Gum.Brutal.OGL` NuGet package (OpenGL) or `Gum.Brutal.Vulkan` (Vulkan). Both render through SkiaSharp and read input from the GLFW window that BRUTAL's `Ahwoo.Brutal.Glfw` package creates. Gum creates and owns the Skia render target and puts the frame on your window, so you only create the window and, for Vulkan, the Vulkan device.

## Creating a New Project

{% hint style="info" %}
To skip these steps, create the project in the Gum tool: select **File** > **New Project**, check **Create C# project**, and pick BRUTAL as the platform. The project already references Gum and loads a Gum project. See [Creating a Project](https://docs.flatredball.com/gum/gum-tool/setup/creating-a-project.md).
{% endhint %}

Before using Gum, you should first verify that you can create a normal BRUTAL project that opens a window. For the full API reference, see the BRUTAL repository: <https://github.com/ahwootech/BRUTAL>

{% tabs %}
{% tab title="Visual Studio" %}
First, create an empty console project

1. Open Visual Studio
2. Select File -> New Project, or select the **Create a new project** option in the popup window.
3. Select the option to create a **Console App**
4. Enter a name, select a location, then click **Next**
5. Select **.NET 10.0** as the **Framework**, then click **Create**

Next, add the needed NuGet packages:

1. Expand your game project in the Solution Explorer
2. Right-click on **Dependencies** and select **Manage NuGet Packages**
3. Search for and install `Ahwoo.Brutal.Glfw`
4. For Vulkan, also install `Ahwoo.Brutal.Vulkan` and `Ahwoo.Brutal.Vulkan.Abstractions`
   {% endtab %}
   {% endtabs %}

BRUTAL's packages ship `net10.0` builds only, so your project must target `net10.0`. BRUTAL runs on Windows, Linux and macOS and needs an OpenGL 3.3 driver, or a Vulkan 1.3 driver if you use Vulkan.

Next, you can begin adding Gum to your project. For more information see the [Adding/Initializing Gum](https://docs.flatredball.com/gum/code/getting-started/setup/adding-initializing-gum/brutal.md) page.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.flatredball.com/gum/code/getting-started/setup/empty-project-before-adding-gum/brutal.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
