Ahwoo.BRUTAL.Stb
2026.10.2
Prefix Reserved
dotnet add package Ahwoo.BRUTAL.Stb --version 2026.10.2
NuGet\Install-Package Ahwoo.BRUTAL.Stb -Version 2026.10.2
<PackageReference Include="Ahwoo.BRUTAL.Stb" Version="2026.10.2" />
<PackageVersion Include="Ahwoo.BRUTAL.Stb" Version="2026.10.2" />
<PackageReference Include="Ahwoo.BRUTAL.Stb" />
paket add Ahwoo.BRUTAL.Stb --version 2026.10.2
#r "nuget: Ahwoo.BRUTAL.Stb, 2026.10.2"
#:package Ahwoo.BRUTAL.Stb@2026.10.2
#addin nuget:?package=Ahwoo.BRUTAL.Stb&version=2026.10.2
#tool nuget:?package=Ahwoo.BRUTAL.Stb&version=2026.10.2
Brutal Stb
C# bindings for the stb single-header libraries, for use with the BRUTAL framework.
Brutal Stb wraps the stb single-header libraries — most notably stb_image — providing .NET access to fast, dependency-free loaders for common image formats including PNG, JPG, BMP, TGA, and HDR. The Stb.Texture package integrates loaded image data with the Brutal Texture abstraction layer for use with the rest of the BRUTAL rendering stack.
Platform Support
- Windows (x64)
- Linux (x64)
- macOS (Apple Silicon)
Links
NuGet Packages
- Ahwoo.BRUTAL.Stb - C# bindings for the stb single-header libraries
- RocketWerkz.Brutal.Stb.Texture - stb texture integration for Brutal.Texture
For Users
Prerequisites
- .NET SDK (version 10.0 or later)
Installation
To install the package via NuGet, run the following command in your project directory:
dotnet add package Ahwoo.BRUTAL.Stb
dotnet add package RocketWerkz.Brutal.Stb.Texture
Usage
Load an image from disk and access its raw pixel data:
using var image = Stb.Load("texture.png");
Console.WriteLine($"{image.Width}x{image.Height}, {image.Channels} channels");
// Access pixels as a flat byte span
Span<byte> pixels = image.AsSpan();
Please refer to the BRUTAL Documentation for more detailed usage instructions and examples.
For Developers
Prerequisites
- .NET SDK (version 10.0 or later)
- Just
- CMake
- Ninja
- A C++ compiler:
- Windows: Visual Studio 2022 (x64)
- Linux: GCC (x64)
- Mac: Xcode and Xcode Command Line Tools (Apple Silicon)
Compilation and Testing
To build the solution locally, run the following command in the repository root:
just build
To run the tests, run the following command in the repository root:
just test
Contributing
If you find a bug or have a feature request, please open an issue on GitHub. If you'd like to contribute code, feel free to fork the repository and submit a pull request.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Ahwoo.BRUTAL.Core (>= 2026.10.1)
- Ahwoo.BRUTAL.Numerics (>= 2026.10.1)
- Ahwoo.BRUTAL.Strings (>= 2026.10.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Ahwoo.BRUTAL.Stb:
| Package | Downloads |
|---|---|
|
Ahwoo.BRUTAL.Texture
General utilities and implementations for working with texture resources. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.10.2 | 1,782 | 10/15/2026 |
Rebuilds against Strings 2026.10.1 and the packages released on it. The previous 2026.10 release still pulled Brutal.T4 in through Strings 2026.10.0; this one no longer does.
No public API changes.
**Full Changelog:** [v2026.10.1...v2026.10.2](https://github.com/RocketWerkz/brutal.stb/compare/v2026.10.1...v2026.10.2)