Add .md files

This commit is contained in:
Steven Brown 2026-10-15 16:41:28 +13:00
commit 2fb09da76a
4 changed files with 258 additions and 0 deletions

20
CODE_OF_CONDUCT.md Normal file
View file

@ -0,0 +1,20 @@
# Code of Conduct
BRUTAL follows the [Contributor Covenant, version 2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct/), together with the [Ahwoo Community Guidelines](https://ahwoo.com/help-centre/community-guidelines). Where they overlap, the stricter rule applies.
## In short
- Be respectful. Criticise code and decisions, not people.
- **Don't direct abuse at maintainers or staff.** Disagreement is fine, but harassment isn't, and it will get you removed even if your technical point is correct.
- No harassment, hate speech, sexual content, doxxing, threats, scams, malware or spam.
- Stay on topic. GitHub issues and PRs are for BRUTAL development. Use the [forums](https://forums.ahwoo.dev/forums/brutal/) for everything else.
## Scope
This applies to the BRUTAL GitHub repositories, the BRUTAL forums, and BRUTAL channels on Ahwoo's Discord, and to anyone representing the project elsewhere.
## Enforcement
Report problems to **conduct@ahwoo.com** (or privately to a moderator). Reports are handled confidentially.
Maintainers may edit or remove comments, lock threads, close issues and PRs, and temporarily or permanently ban anyone whose behaviour breaks this code. We follow the Contributor Covenant's enforcement ladder: correction, warning, temporary ban, permanent ban. Serious breaches (threats, doxxing, sexual content involving minors, malware) skip straight to a permanent ban and may be reported to the platform and to authorities.

72
CONTRIBUTING.md Normal file
View file

@ -0,0 +1,72 @@
# Contributing to BRUTAL
Thanks for your interest in BRUTAL. You can submit issues and pull requests. We're a small team, and maintaining a public framework is a lot of work, so please be patient with us. We'll see how things go at first and adjust our process as we learn. Feedback on that process is welcome on the [forums](https://forums.ahwoo.dev/forums/brutal/general/).
## The short version
- **Questions and "how do I…?"** go to the [BRUTAL forums](https://forums.ahwoo.dev/forums/brutal/guides-and-help/), not GitHub issues.
- **Bugs:** open an issue using the bug template, with a minimal repro.
- **Anything bigger than a small fix:** open an issue first and wait for a maintainer to agree the approach before you write the code.
- **Security problems:** report them privately. See [SECURITY.md](SECURITY.md).
## BRUTAL's scope
BRUTAL is a framework, not a game engine. At its core is an interop layer that gives C# access to native APIs and libraries, with supporting libraries for maths, memory, strings, job scheduling, logging, localisation and Vulkan bindings. It is built for "hard to make games", and its job is to do a few low-level things extremely well.
Think of the relationship between the Linux kernel and a distribution like Ubuntu. BRUTAL is the foundation, and developers build their own systems on top of it. **We're aggressive about keeping that scope.** Pull requests that drift away from that purpose will be declined, for example ones that:
- add engine-style features (scene graphs, editors, high-level renderers, gameplay systems)
- add abstractions over APIs that BRUTAL deliberately exposes directly
- add dependencies without prior discussion
- change public APIs without an agreed issue
That isn't because we don't appreciate contributions. Adding everything is how the industry ended up with the kinds of engines BRUTAL exists to avoid. If you build something on top of BRUTAL, please share it in the [Tools and Libraries](https://forums.ahwoo.dev/forums/brutal/tools-and-libraries/) forum.
## Reporting bugs
Please include:
- BRUTAL package names and versions
- .NET version, OS and GPU/driver (for graphics issues)
- the smallest code sample that reproduces the problem
- what you expected and what happened instead (full exception and stack trace)
## Pull requests
1. Make sure an issue exists and a maintainer has agreed the approach (typo and tiny doc fixes excepted).
2. Keep the PR focused on one change.
3. Follow the existing code style. Avoid allocations in hot paths, and don't add abstraction for its own sake.
4. Build and test on at least one target (Windows, Linux or macOS), and say which.
5. Sign off every commit (see below).
### Agentic and AI-assisted contributions
Agentic tools can make you very productive. They also make it easy to submit large amounts of code without understanding it, testing it, or considering how it fits into the project. You may use them, but you are responsible for every line you submit: you must understand it, have tested it, and be able to explain it in review. Say in the PR description if a substantial part was AI-generated. Large, untested or unexplained AI-generated PRs will be closed without review.
## Licensing of contributions
BRUTAL is distributed under the [BRUTAL License](LICENSE). **Section 5.0 of the licence covers contributions.** By submitting a contribution you grant Ahwoo Limited and all recipients of BRUTAL a perpetual, worldwide, non-exclusive, royalty-free, irrevocable licence to include it in BRUTAL and use it under the licence's terms. You also confirm that you're legally entitled to grant that licence and that your contribution doesn't infringe anyone else's rights. Please read section 5.0 before opening a PR.
Third-party components that BRUTAL redistributes keep their own licences, listed in the `LICENSES/` directory (section 4.0). Don't add third-party code without discussing it in an issue first.
### Sign-off (Developer Certificate of Origin)
Each commit must be signed off to confirm you agree to the [Developer Certificate of Origin](https://developercertificate.org/). Use `git commit -s`, which adds:
```
Signed-off-by: Your Name <you@example.com>
```
## Using BRUTAL in your own game
You don't need to contribute to use BRUTAL. It's free, including for commercial games, with no royalties. The licence asks three things of any game or product built with it:
- **2.1:** the copyright notice in your Credits screen (or equivalent)
- **2.2:** the BRUTAL logo from [ahwoo.com/brutal-branding](https://ahwoo.com/brutal-branding) shown before gameplay starts
- **2.3:** `NOTICE.txt` shipped alongside your game
For a logo waiver (for example non-profit projects, or where the logo would get in the way of the product's purpose) or a separate commercial licence, contact Ahwoo at **[CONTACT ADDRESS]**.
## Code of Conduct
Everyone taking part in BRUTAL spaces is expected to follow our [Code of Conduct](CODE_OF_CONDUCT.md).

140
README.md Normal file
View file

@ -0,0 +1,140 @@
<p align="center">
<img src="https://ahwoo.com/brutal-branding/LOGO_BRUTAL_WHT.png" alt="BRUTAL" width="360">
</p>
<h3 align="center">Built for games that are hard to make.</h3>
<p align="center">
<a href="https://ahwoo.com/brutal">Website</a> ·
<a href="https://www.nuget.org/profiles/Ahwoo">NuGet</a> ·
<a href="https://forums.ahwoo.dev/forums/brutal/">Forums</a> ·
<a href="https://discord.gg/MEuNTYbAh8">Discord</a> ·
<a href="LICENSE">BRUTAL License</a>
</p>
---
**BRUTAL** is a C# game development framework from Ahwoo and RocketWerkz. It gives modern .NET direct, low-overhead access to native APIs and high-performance C and C++ libraries, including Vulkan.
BRUTAL is **a framework, not a game engine**. You can make a game directly with it, as we did with [Kitten Space Agency](https://ahwoo.com/app/100000/kitten-space-agency/), or use it as the foundation for your own engine, as Ludeon did with Waylith for [RimWorld](https://ludeon.com/blog/2026/10/announcing-the-waylith-engine-and-update-1-7/).
It's free to use, including for commercial games, with no royalties. It does have an [attribution requirement](#licence).
## Why BRUTAL
General-purpose engines are built around assumptions that suit most games. If your game sits far from that average, you spend much of your time working around the engine rather than on your game.
BRUTAL takes the other approach. It does a small number of low-level things extremely well and leaves the architecture to you:
- **A custom interop layer** that gives C# direct access to native APIs and libraries
- **Unmanaged memory and unsafe code where it matters**, with an obsessive focus on avoiding allocations and overhead
- **Bindings that follow each API as designed**, so existing Vulkan (or GLFW, Jolt, FMOD…) knowledge transfers unchanged
- **Supporting libraries** for maths, numerics, memory, collections, strings, job scheduling, logging and localisation
- **Your own stack.** Use any NuGet packages you like. There's no engine loop to hook into, because your game owns its frame.
> **It's called BRUTAL for a reason.** There are no guardrails, no editor and no ready-made renderer. You're responsible for the systems you build. In exchange, you can see and change everything, all the way down. If you want an engine that makes the decisions for you, Unity, Unreal or Godot will serve you better.
## Built with BRUTAL
| | |
|---|---|
| **[Kitten Space Agency](https://ahwoo.com/app/100000/kitten-space-agency/)** · RocketWerkz | The first game built from scratch on BRUTAL. It simulates a real solar system at real scale. Winner of Most Innovative Hi-Tech Creative Technology Solution at the 2026 NZ Hi-Tech Awards. |
| **[RimWorld 1.7](https://ludeon.com/blog/2026/10/announcing-the-waylith-engine-and-update-1-7/)** · Ludeon Studios | Ludeon built Waylith, RimWorld's new engine, on BRUTAL. They report 2–4× faster performance in their tests. |
## Getting started
> ⚠️ **TODO before launch:** confirm the published package IDs and add a minimal example. Fill this section in from the same instructions as the "How to get started" section of Dean's announcement post.
**Requirements:** [.NET 10](https://dotnet.microsoft.com/download) · Windows, Linux or macOS · a Vulkan-capable GPU for graphics
BRUTAL ships as NuGet packages under the [Ahwoo profile](https://www.nuget.org/profiles/Ahwoo). Add only the modules you need:
```sh
dotnet add package Ahwoo.BRUTAL.Core
dotnet add package Ahwoo.BRUTAL.Vulkan
dotnet add package Ahwoo.BRUTAL.Glfw
```
<!-- TODO: link a minimal "window + clear screen" sample once one is published -->
## What's in the box
Every package targets Windows, Linux and macOS.
**Foundations**
| Module | What it does |
|---|---|
| `Brutal.Core` | Core types, pointers and platform helpers that everything else builds on |
| `Brutal.Interop` | The interop layer between C# and native libraries |
| `Brutal.Memory` | Direct unmanaged memory allocation |
| `Brutal.Collections` | Allocation-free collections and pools |
| `Brutal.Concurrency` | Job scheduling and threading primitives |
| `Brutal.Numerics` · `Brutal.Maths` | Vector, matrix and quaternion types (including double precision) with SIMD support |
| `Brutal.Strings` · `Brutal.Logging` · `Brutal.Localization` | Strings, logging and localisation |
| `Brutal.Monitor` | Process monitoring and crash capture |
**Graphics**
| Module | Binds |
|---|---|
| `Brutal.Vulkan` | Vulkan, plus the Vulkan Memory Allocator |
| `Brutal.OpenGL` | OpenGL |
| `Brutal.Render` | Mesh-building helpers |
| `Brutal.Texture` · `Brutal.Gli` · `Brutal.Ktx` · `Brutal.Stb` | Texture loading and formats |
| `Brutal.Gltf` · `Brutal.MeshOptimizer` | glTF loading and mesh optimisation |
| `Brutal.ImGui` | Dear ImGui |
| `Brutal.FreeType` | Font rasterisation |
| `Brutal.RenderDoc` | RenderDoc capture integration |
**Platform, input and audio**
| Module | Binds |
|---|---|
| `Brutal.Glfw` · `Brutal.Sdl` | Windowing and input |
| `Brutal.NativeFileDialog` | Native file dialogs |
| `Brutal.Notcurses` | Terminal UI |
| `Brutal.FMOD` · `Brutal.OpenAL` | Audio |
**Physics, networking and data**
| Module | Binds |
|---|---|
| `Brutal.Jolt` | Jolt Physics (3D) |
| `Brutal.Box2D` | Box2D (2D physics) |
| `Brutal.RakNet` | RakNet networking |
| `Brutal.Zlib` | Compression |
<!-- TODO: check the one-line module descriptions with the enterprise team before launch -->
Third-party libraries keep their own licences, which are listed in each package's `LICENSES/` directory. Some, such as FMOD, have their own licence terms that you must meet separately.
## Licence
BRUTAL is released under the **[BRUTAL License v1.0](LICENSE)**, which is based on MIT with extra attribution requirements. You can use, modify and distribute BRUTAL for free, including in commercial games, with no royalties.
Any game or product built with BRUTAL must:
1. **Credit:** include the BRUTAL copyright notice in its credits screen, or equivalent (§2.1)
2. **Logo:** show the BRUTAL logo from [ahwoo.com/brutal-branding](https://ahwoo.com/brutal-branding) before gameplay begins (§2.2)
3. **Notice:** ship `NOTICE.txt` alongside the product (§2.3)
To ask about waiving the logo requirement (for example for non-profit projects) or about a separate commercial licence, contact Ahwoo at **[CONTACT ADDRESS]**.
We describe BRUTAL as open source. Our custom licence hasn't been reviewed by the Open Source Initiative, and we welcome discussion about that and plan to develop the licence with community feedback.
## Contributing
Issues and pull requests are welcome. We're a small team, so please be patient with us. BRUTAL's scope is kept deliberately tight, and pull requests that drift away from that purpose will be declined. Read **[CONTRIBUTING.md](CONTRIBUTING.md)** before opening one. It covers scope, AI-assisted contributions and the Contribution Grant (§5.0).
- Questions and help: [BRUTAL forums](https://forums.ahwoo.dev/forums/brutal/guides-and-help/)
- Security issues: see [SECURITY.md](SECURITY.md). Please don't open a public issue.
- Code of Conduct: [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)
## Credits
BRUTAL is developed by the Enterprise team at RocketWerkz, in collaboration with Ahwoo. See [CONTRIBUTORS.md](CONTRIBUTORS.md) for the people who built it.
---
<sub>BRUTAL is Copyright © 2024 Ahwoo Limited. Kitten Space Agency is a trademark of RocketWerkz. RimWorld is a trademark of Ludeon Studios.</sub>

26
SECURITY.md Normal file
View file

@ -0,0 +1,26 @@
# Security Policy
## Reporting a vulnerability
**Please do not report security issues in public issues, PRs, forums or Discord.**
Report privately via either:
- GitHub: **Security → Report a vulnerability** on this repository (private advisory), or
- email: **security@ahwoo.com**
Please include the affected packages and versions, a description of the issue and its impact, and steps or code to reproduce it.
## What to expect
- We'll acknowledge your report within **5 working days** (NZ time).
- We'll keep you updated while we investigate, and agree a disclosure timeline with you.
- We're happy to credit you in the advisory unless you'd prefer not to be named.
## Supported versions
Security fixes are made to the **latest released version** of each BRUTAL package on NuGet. Please update before reporting if you can.
## Scope
In scope: BRUTAL source and packages in this repository. Out of scope: issues in third-party libraries we bundle (report those upstream; see `LICENSES/`), and in games built with BRUTAL (contact that game's developer).