Update Slang, Vulkan, Gltf and ImGui. Offload natives to sub-packages.

Public-PR: https://github.com/ahwootech/BRUTAL/pull/9
Public-PR: https://github.com/ahwootech/BRUTAL/pull/15
Public-PR: https://github.com/ahwootech/BRUTAL/pull/21
Fixes: ahwootech/BRUTAL#8
Fixes: ahwootech/BRUTAL#22
Co-authored-by: Laurens de Voogd <laurens@devoogd.be>
Co-authored-by: sGo7-Dev <goulax16@gmail.com>
Co-authored-by: Capsup <capsup@live.dk>
This commit is contained in:
BRUTAL release 2026-10-23 15:07:17 +13:00
commit 4ac91e105e
55 changed files with 2034 additions and 318 deletions

View file

@ -1,6 +1,41 @@
namespace Brutal.Attributes;
/// <summary>
/// Indicates that an entity only exposes memory that has a fixed address. Marking an entity [Fixed] allows the analyser
/// to check that the entity is only used in contexts where the memory is guaranteed to be fixed, such as when it is
/// returned from a method or passed as a parameter. <para />
/// The attribute can be applied to return values, parameters, fields, properties, interfaces, classes, and structs.
/// </summary>
[AttributeUsage(
AttributeTargets.ReturnValue | AttributeTargets.Parameter | AttributeTargets.Field | AttributeTargets.Property
AttributeTargets.ReturnValue
| AttributeTargets.Parameter
| AttributeTargets.Field
| AttributeTargets.Property
| AttributeTargets.Interface
| AttributeTargets.Class
| AttributeTargets.Struct
)]
public sealed class FixedAttribute : Attribute { }
/// <summary>
/// Acts like the [Fixed] attribute but only if the referenced type is itself fixed. Pass the <c>nameof</c> a type
/// parameter of the containing method or type to resolve its type argument, or the <c>typeof</c> a concrete type or
/// interface.
/// </summary>
[AttributeUsage(AttributeTargets.ReturnValue | AttributeTargets.Property | AttributeTargets.Parameter)]
public sealed class FixedWhenAttribute : Attribute
{
public FixedWhenAttribute(string typeName)
{
TypeName = typeName;
}
public FixedWhenAttribute(Type type)
{
Type = type;
}
public string? TypeName { get; }
public Type? Type { get; }
}

View file

@ -1,5 +1,5 @@
THIRD-PARTY LICENSE NOTICES
RocketWerkz.Brutal.FreeType
Ahwoo.BRUTAL.FreeType
This package redistributes the third-party components listed below, each reproduced
with the license that governs it.
@ -17,7 +17,7 @@ with the license that governs it.
License for the library, and a separate X11-style license for each of the contributed
BDF and PCF drivers, which are compiled into the shipped binaries.
zlib is not contained in this package. It is supplied by RocketWerkz.Brutal.ZLib,
zlib is not contained in this package. It is supplied by Ahwoo.BRUTAL.ZLib,
on which this package depends, and is covered by that package's own notices.
FreeType's own LICENSE.TXT distributes it "under two mutually exclusive open-source

View file

@ -1,5 +1,5 @@
THIRD-PARTY LICENSE NOTICES
RocketWerkz.Brutal.Glfw
Ahwoo.BRUTAL.Glfw
Brutal.Glfw redistributes the third-party components named below, as native libraries.
Each is reproduced with the license that governs it.

View file

@ -1,5 +1,5 @@
THIRD-PARTY LICENSE NOTICES
RocketWerkz.Brutal.Gli
Ahwoo.BRUTAL.Gli
Brutal.Gli redistributes the third-party components named below, as native libraries.
Each is reproduced with the license that governs it.

View file

@ -158,7 +158,7 @@ namespace Brutal.GltfApi {
/// <summary>
/// Specifies if the accessor's elements are scalars, vectors, or matrices.
/// </summary>
[System.Text.Json.Serialization.JsonConverterAttribute(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))]
[System.Text.Json.Serialization.JsonConverterAttribute(typeof(System.Text.Json.Serialization.JsonStringEnumConverter<TypeEnum>))]
[System.Text.Json.Serialization.JsonRequiredAttribute()]
[System.Text.Json.Serialization.JsonPropertyNameAttribute("type")]
public TypeEnum Type {

View file

@ -58,7 +58,7 @@ namespace Brutal.GltfApi {
/// <summary>
/// The name of the node's TRS property to animate, or the `"weights"` of the Morph Targets it instantiates. For the `"translation"` property, the values that are provided by the sampler are the translation along the X, Y, and Z axes. For the `"rotation"` property, the values are a quaternion in the order (x, y, z, w), where w is the scalar. For the `"scale"` property, the values are the scaling factors along the X, Y, and Z axes.
/// </summary>
[System.Text.Json.Serialization.JsonConverterAttribute(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))]
[System.Text.Json.Serialization.JsonConverterAttribute(typeof(System.Text.Json.Serialization.JsonStringEnumConverter<PathEnum>))]
[System.Text.Json.Serialization.JsonRequiredAttribute()]
[System.Text.Json.Serialization.JsonPropertyNameAttribute("path")]
public PathEnum Path {

View file

@ -64,7 +64,7 @@ namespace Brutal.GltfApi {
/// <summary>
/// Interpolation algorithm.
/// </summary>
[System.Text.Json.Serialization.JsonConverterAttribute(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))]
[System.Text.Json.Serialization.JsonConverterAttribute(typeof(System.Text.Json.Serialization.JsonStringEnumConverter<InterpolationEnum>))]
[System.Text.Json.Serialization.JsonPropertyNameAttribute("interpolation")]
public InterpolationEnum Interpolation {
get {

View file

@ -78,7 +78,7 @@ namespace Brutal.GltfApi {
/// <summary>
/// Specifies if the camera uses a perspective or orthographic projection.
/// </summary>
[System.Text.Json.Serialization.JsonConverterAttribute(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))]
[System.Text.Json.Serialization.JsonConverterAttribute(typeof(System.Text.Json.Serialization.JsonStringEnumConverter<TypeEnum>))]
[System.Text.Json.Serialization.JsonRequiredAttribute()]
[System.Text.Json.Serialization.JsonPropertyNameAttribute("type")]
public TypeEnum Type {

View file

@ -0,0 +1,46 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Brutal.GltfApi {
/// <summary>
/// Source-generated JSON metadata for the generated glTF schema types.
/// </summary>
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(System.Text.Json.JsonElement))]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(DracoMeshCompressionGltfMeshPrimitiveExtension))]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(Gltf))]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(LightsPunctualGltfDocumentExtension))]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(MaterialsAnisotropyGltfMaterialExtension))]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(MaterialsClearcoatGltfMaterialExtension))]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(MaterialsEmissiveStrengthGltfMaterialExtension))]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(MaterialsIridescenceGltfMaterialExtension))]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(MaterialsSheenGltfMaterialExtension))]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(MaterialsSpecularGltfMaterialExtension))]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(MaterialsTransmissionGltfMaterialExtension))]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(MaterialsUnlitGltfMaterialExtension))]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(MaterialsVolumeGltfMaterialExtension))]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(TextureBasisuGltfTextureExtension))]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(TextureTransformGltfTextureinfoExtension))]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(Accessor.ComponentTypeEnum), TypeInfoPropertyName="AccessorComponentTypeEnum")]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(Accessor.TypeEnum), TypeInfoPropertyName="AccessorTypeEnum")]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(AccessorSparseIndices.ComponentTypeEnum), TypeInfoPropertyName="AccessorSparseIndicesComponentTypeEnum")]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(AnimationChannelTarget.PathEnum), TypeInfoPropertyName="AnimationChannelTargetPathEnum")]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(AnimationSampler.InterpolationEnum), TypeInfoPropertyName="AnimationSamplerInterpolationEnum")]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(BufferView.TargetEnum), TypeInfoPropertyName="BufferViewTargetEnum")]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(Camera.TypeEnum), TypeInfoPropertyName="CameraTypeEnum")]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(Material.AlphaModeEnum), TypeInfoPropertyName="MaterialAlphaModeEnum")]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(MeshPrimitive.ModeEnum), TypeInfoPropertyName="MeshPrimitiveModeEnum")]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(Sampler.MagFilterEnum), TypeInfoPropertyName="SamplerMagFilterEnum")]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(Sampler.MinFilterEnum), TypeInfoPropertyName="SamplerMinFilterEnum")]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(Sampler.WrapSEnum), TypeInfoPropertyName="SamplerWrapSEnum")]
[System.Text.Json.Serialization.JsonSerializableAttribute(typeof(Sampler.WrapTEnum), TypeInfoPropertyName="SamplerWrapTEnum")]
internal partial class GltfJsonContext {
}
}

View file

@ -181,7 +181,7 @@ namespace Brutal.GltfApi {
/// <summary>
/// The alpha rendering mode of the material.
/// </summary>
[System.Text.Json.Serialization.JsonConverterAttribute(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))]
[System.Text.Json.Serialization.JsonConverterAttribute(typeof(System.Text.Json.Serialization.JsonStringEnumConverter<AlphaModeEnum>))]
[System.Text.Json.Serialization.JsonPropertyNameAttribute("alphaMode")]
public AlphaModeEnum AlphaMode {
get {

View file

@ -0,0 +1,27 @@
using System.Text.Json;
using System.Text.Json.Serialization;
namespace Brutal.GltfApi;
/// <summary>
/// Source-generated System.Text.Json metadata for the glTF schema, so that loading and saving
/// works without reflection (trimming and Native AOT).
/// </summary>
/// <remarks>
/// The generator emits the other half of this class (<c>GeneratedSchema/GltfJsonContext.gen.cs</c>) with every
/// <see cref="JsonSerializableAttribute"/>: the document root, every extension root type, the nested enums and
/// <see cref="JsonElement"/>. Don't add <see cref="JsonSerializableAttribute"/> here; the System.Text.Json source
/// generator fails when more than one partial declaration carries it.
/// </remarks>
[JsonSourceGenerationOptions(
// glTF has no concept of an explicit JSON null; absent optional properties must be
// omitted entirely or strict validators reject the asset (e.g. "uri": null in GLB).
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
Converters = [
typeof(JsonHelpers.Float3JsonConverter),
typeof(JsonHelpers.Float4JsonConverter),
typeof(JsonHelpers.FloatQuatJsonConverter),
typeof(JsonHelpers.Float4X4JsonConverter),
]
)]
internal partial class GltfJsonContext : JsonSerializerContext;

View file

@ -1,5 +1,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization.Metadata;
namespace Brutal.GltfApi;
@ -149,21 +151,37 @@ public static class GltfUtility
}
}
[UnconditionalSuppressMessage(
"Trimming",
"IL2026",
Justification = "Reflection is only used when JsonSerializer.IsReflectionEnabledByDefault, which is false under trimming and Native AOT."
)]
[UnconditionalSuppressMessage(
"AOT",
"IL3050",
Justification = "Reflection is only used when JsonSerializer.IsReflectionEnabledByDefault, which is false under trimming and Native AOT."
)]
private static JsonSerializerOptions CreateSerializerOptions()
{
var options = new JsonSerializerOptions();
// glTF has no concept of an explicit JSON null; absent optional properties must be
// omitted entirely or strict validators reject the asset (e.g. "uri": null in GLB).
options.DefaultIgnoreCondition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull;
options.Converters.Add(new JsonHelpers.Float3JsonConverter());
options.Converters.Add(new JsonHelpers.Float4JsonConverter());
options.Converters.Add(new JsonHelpers.FloatQuatJsonConverter());
options.Converters.Add(new JsonHelpers.Float4X4JsonConverter());
// Settings, converters and metadata come from the source-generated GltfJsonContext, which is all
// that is available under trimming and Native AOT. When reflection is enabled, fall back to it for
// types the context doesn't know, such as custom extension classes passed to GetExtension<T> or
// assigned to an Extensions map.
var options = new JsonSerializerOptions(GltfJsonContext.Default.Options);
if (JsonSerializer.IsReflectionEnabledByDefault)
{
options.TypeInfoResolver = JsonTypeInfoResolver.Combine(
GltfJsonContext.Default,
new DefaultJsonTypeInfoResolver()
);
}
return options;
}
internal static readonly JsonSerializerOptions JsonOptions = CreateSerializerOptions();
private static readonly JsonTypeInfo<Gltf> GltfTypeInfo = (JsonTypeInfo<Gltf>)JsonOptions.GetTypeInfo(typeof(Gltf));
/// <summary>
/// Parses a JSON formatted text content
/// </summary>
@ -171,7 +189,7 @@ public static class GltfUtility
/// <returns><code>Schema.Gltf</code> model</returns>
public static Gltf DeserializeModelJson(string fileData)
{
return JsonSerializer.Deserialize<Gltf>(fileData, JsonOptions) ?? throw new NullReferenceException();
return JsonSerializer.Deserialize(fileData, GltfTypeInfo) ?? throw new NullReferenceException();
}
/// <summary>
@ -181,7 +199,7 @@ public static class GltfUtility
/// <returns>JSON formatted text</returns>
public static string SerializeModelJson(this Gltf model)
{
return JsonSerializer.Serialize(model, JsonOptions);
return JsonSerializer.Serialize(model, GltfTypeInfo);
}
private static byte[]? TryLoadBase64BinaryBufferUnchecked(Buffer buffer, string prefix)

View file

@ -1,4 +1,5 @@
using System.Text.Json;
using System.Text.Json.Serialization.Metadata;
namespace Brutal.GltfApi;
@ -9,8 +10,31 @@ public interface IExtensionGltfObject
public static class GltfExtensions
{
/// <summary>
/// Gets an extension object by name.
/// </summary>
/// <remarks>
/// Under trimming or Native AOT, <typeparamref name="T"/> must be one of the extension types this library
/// defines; for your own extension types use the overload that takes a <see cref="JsonTypeInfo{T}"/>.
/// </remarks>
public static T? GetExtension<T>(this IExtensionGltfObject obj, string extensionName)
where T : class
{
return GetExtensionCore<T>(obj, extensionName, jsonTypeInfo: null);
}
/// <summary>
/// Gets an extension object by name, reading it with the given source-generated metadata.
/// </summary>
public static T? GetExtension<T>(this IExtensionGltfObject obj, string extensionName, JsonTypeInfo<T> jsonTypeInfo)
where T : class
{
ArgumentNullException.ThrowIfNull(jsonTypeInfo);
return GetExtensionCore(obj, extensionName, jsonTypeInfo);
}
private static T? GetExtensionCore<T>(IExtensionGltfObject obj, string extensionName, JsonTypeInfo<T>? jsonTypeInfo)
where T : class
{
var extensionMap = obj.Extensions;
if (extensionMap == null || !extensionMap.TryGetValue(extensionName, out var extObj))
@ -19,8 +43,10 @@ public static class GltfExtensions
// from deserialization hold the raw JsonElement.
if (extObj is T typed)
return typed;
// Metadata is resolved only here: for an unregistered T it throws under Native AOT, and in JIT builds
// for types System.Text.Json can't describe, which must not break lookups that never deserialize.
if (extObj is JsonElement je)
return je.Deserialize<T>(GltfUtility.JsonOptions);
return je.Deserialize(jsonTypeInfo ?? (JsonTypeInfo<T>)GltfUtility.JsonOptions.GetTypeInfo(typeof(T)));
throw new InvalidCastException(
$"Extension '{extensionName}' holds a {extObj.GetType()}, expected {typeof(T)} or JsonElement"
);

View file

@ -1,5 +1,5 @@
THIRD-PARTY LICENSE NOTICES
RocketWerkz.Brutal.Gltf
Ahwoo.BRUTAL.Gltf
This package contains no third-party library. Its glTF type definitions are generated
from The Khronos Group's glTF 2.0 JSON schemas, and the descriptive text of those

View file

@ -0,0 +1,180 @@
THIRD-PARTY LICENSE NOTICES
The Brutal.ImGui packages
This file ships in all eleven packages named below. They redistribute the third-party
components listed here, each reproduced with the license that governs it.
One file serves all eleven packages, so this table says which components apply to
the package you are holding:
Ahwoo.BRUTAL.ImGui Dear ImGui, and the three stb libraries
compiled into it
Ahwoo.BRUTAL.ImGui.Backends Dear ImGui's platform and renderer
backends, translated to C#
Ahwoo.BRUTAL.ImGui.DemoWindow Dear ImGui's demo sources, translated
to C#
Ahwoo.BRUTAL.ImGui.FreeType Dear ImGui's FreeType font adapter
Ahwoo.BRUTAL.ImPlot ImPlot
Ahwoo.BRUTAL.ImPlot.DemoWindow ImPlot's demo sources, translated to C#
Ahwoo.BRUTAL.ImGui.Native Dear ImGui's native library, and the three
stb libraries compiled into it
Ahwoo.BRUTAL.ImGui.FreeType.Native Dear ImGui's FreeType font adapter, as a
native library
Ahwoo.BRUTAL.ImPlot.Native ImPlot's native library
Ahwoo.BRUTAL.ImGui.Abstractions no third-party code
Ahwoo.BRUTAL.ImGui.Extensions no third-party code
The native libraries ship only in the three .Native packages, each for every
runtime identifier it supports (win-x64, linux-x64, osx-arm64):
Dear ImGui 1.92.2 imgui.dll / libimgui.so / libimgui.dylib
imgui_freetype.dll / libimgui_freetype.so / libimgui_freetype.dylib
ImPlot 0.17 implot.dll / libimplot.so / libimplot.dylib
Dear ImGui vendors three of Sean Barrett's stb libraries, and all three are
compiled into the Dear ImGui binaries shipped here. They have their own section
below.
The managed assemblies are in scope as well as the native libraries. Type names,
enumerant values and entry-point signatures are generated from the corresponding
upstream headers, and the backend and demo assemblies are C# translations of
upstream sources.
Ahwoo.BRUTAL.ImGui.FreeType binds Dear ImGui's FreeType font adapter, which
is Dear ImGui code and is covered by the Dear ImGui section below. FreeType itself
is in none of these eleven packages; it is supplied by Ahwoo.BRUTAL.FreeType,
whose own notices reproduce the FreeType License in full.
==============================================================================
Dear ImGui
==============================================================================
Name Dear ImGui
Version 1.92.2, docking branch
Upstream https://github.com/ocornut/imgui
SPDX MIT
Built from a RocketWerkz fork of the docking branch. The modifications are ours
and do not alter the terms below, which are reproduced from the copy these
packages were built from.
This component covers the imgui and imgui_freetype native libraries, the managed
bindings generated from Dear ImGui's headers, and the C# translations of Dear
ImGui's backend and demo sources.
The MIT License (MIT)
Copyright (c) 2014-2025 Omar Cornut
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
==============================================================================
stb
==============================================================================
Name stb_rect_pack, stb_textedit, stb_truetype
Version 1.01, 1.14, 1.26 respectively
Upstream https://github.com/nothings/stb
SPDX MIT OR Unlicense
Vendored by Dear ImGui as imstb_rectpack.h, imstb_textedit.h and
imstb_truetype.h, and compiled into the Dear ImGui native libraries shipped
here. All three carry the same dual license, which offers a choice between
the MIT License and release into the public domain. It is reproduced once
below, from the copy these packages were built from.
This software is available under 2 licenses -- choose whichever you prefer.
------------------------------------------------------------------------------
ALTERNATIVE A - MIT License
Copyright (c) 2017 Sean Barrett
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
------------------------------------------------------------------------------
ALTERNATIVE B - Public Domain (www.unlicense.org)
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this
software, either in source code form or as a compiled binary, for any purpose,
commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this
software dedicate any and all copyright interest in the software to the public
domain. We make this dedication for the benefit of the public at large and to
the detriment of our heirs and successors. We intend this dedication to be an
overt act of relinquishment in perpetuity of all present and future rights to
this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------
==============================================================================
ImPlot
==============================================================================
Name ImPlot
Version 0.17, upstream commit 3da8bd3 (26 commits after tag v0.16)
Upstream https://github.com/epezent/implot
SPDX MIT
ImPlot is a plotting extension for Dear ImGui. Its version is the one ImPlot
reports for itself; the commit is given because upstream had not tagged 0.17 when
these packages were built.
This component covers the implot native library, the managed bindings generated
from ImPlot's headers, and the C# translation of ImPlot's demo sources.
MIT License
Copyright (c) 2020 Evan Pezent
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -0,0 +1,180 @@
THIRD-PARTY LICENSE NOTICES
The Brutal.ImGui packages
This file ships in all eleven packages named below. They redistribute the third-party
components listed here, each reproduced with the license that governs it.
One file serves all eleven packages, so this table says which components apply to
the package you are holding:
Ahwoo.BRUTAL.ImGui Dear ImGui, and the three stb libraries
compiled into it
Ahwoo.BRUTAL.ImGui.Backends Dear ImGui's platform and renderer
backends, translated to C#
Ahwoo.BRUTAL.ImGui.DemoWindow Dear ImGui's demo sources, translated
to C#
Ahwoo.BRUTAL.ImGui.FreeType Dear ImGui's FreeType font adapter
Ahwoo.BRUTAL.ImPlot ImPlot
Ahwoo.BRUTAL.ImPlot.DemoWindow ImPlot's demo sources, translated to C#
Ahwoo.BRUTAL.ImGui.Native Dear ImGui's native library, and the three
stb libraries compiled into it
Ahwoo.BRUTAL.ImGui.FreeType.Native Dear ImGui's FreeType font adapter, as a
native library
Ahwoo.BRUTAL.ImPlot.Native ImPlot's native library
Ahwoo.BRUTAL.ImGui.Abstractions no third-party code
Ahwoo.BRUTAL.ImGui.Extensions no third-party code
The native libraries ship only in the three .Native packages, each for every
runtime identifier it supports (win-x64, linux-x64, osx-arm64):
Dear ImGui 1.92.2 imgui.dll / libimgui.so / libimgui.dylib
imgui_freetype.dll / libimgui_freetype.so / libimgui_freetype.dylib
ImPlot 0.17 implot.dll / libimplot.so / libimplot.dylib
Dear ImGui vendors three of Sean Barrett's stb libraries, and all three are
compiled into the Dear ImGui binaries shipped here. They have their own section
below.
The managed assemblies are in scope as well as the native libraries. Type names,
enumerant values and entry-point signatures are generated from the corresponding
upstream headers, and the backend and demo assemblies are C# translations of
upstream sources.
Ahwoo.BRUTAL.ImGui.FreeType binds Dear ImGui's FreeType font adapter, which
is Dear ImGui code and is covered by the Dear ImGui section below. FreeType itself
is in none of these eleven packages; it is supplied by Ahwoo.BRUTAL.FreeType,
whose own notices reproduce the FreeType License in full.
==============================================================================
Dear ImGui
==============================================================================
Name Dear ImGui
Version 1.92.2, docking branch
Upstream https://github.com/ocornut/imgui
SPDX MIT
Built from a RocketWerkz fork of the docking branch. The modifications are ours
and do not alter the terms below, which are reproduced from the copy these
packages were built from.
This component covers the imgui and imgui_freetype native libraries, the managed
bindings generated from Dear ImGui's headers, and the C# translations of Dear
ImGui's backend and demo sources.
The MIT License (MIT)
Copyright (c) 2014-2025 Omar Cornut
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
==============================================================================
stb
==============================================================================
Name stb_rect_pack, stb_textedit, stb_truetype
Version 1.01, 1.14, 1.26 respectively
Upstream https://github.com/nothings/stb
SPDX MIT OR Unlicense
Vendored by Dear ImGui as imstb_rectpack.h, imstb_textedit.h and
imstb_truetype.h, and compiled into the Dear ImGui native libraries shipped
here. All three carry the same dual license, which offers a choice between
the MIT License and release into the public domain. It is reproduced once
below, from the copy these packages were built from.
This software is available under 2 licenses -- choose whichever you prefer.
------------------------------------------------------------------------------
ALTERNATIVE A - MIT License
Copyright (c) 2017 Sean Barrett
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
------------------------------------------------------------------------------
ALTERNATIVE B - Public Domain (www.unlicense.org)
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this
software, either in source code form or as a compiled binary, for any purpose,
commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this
software dedicate any and all copyright interest in the software to the public
domain. We make this dedication for the benefit of the public at large and to
the detriment of our heirs and successors. We intend this dedication to be an
overt act of relinquishment in perpetuity of all present and future rights to
this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------
==============================================================================
ImPlot
==============================================================================
Name ImPlot
Version 0.17, upstream commit 3da8bd3 (26 commits after tag v0.16)
Upstream https://github.com/epezent/implot
SPDX MIT
ImPlot is a plotting extension for Dear ImGui. Its version is the one ImPlot
reports for itself; the commit is given because upstream had not tagged 0.17 when
these packages were built.
This component covers the implot native library, the managed bindings generated
from ImPlot's headers, and the C# translation of ImPlot's demo sources.
MIT License
Copyright (c) 2020 Evan Pezent
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -277,6 +277,9 @@ public partial class GlfwBackend : IPlatformBackend
private unsafe byte* GetClipboardText(ImGuiContextPtr context)
{
var str = Glfw.Clipboard;
if (str is null)
return null;
var byteCount = Utf8.GetByteCount(str);
_cachedClipboardText.Count = byteCount + 1;
Utf8.FromUtf16(str, _cachedClipboardText.AsSpan(), out _, out _);

View file

@ -0,0 +1,180 @@
THIRD-PARTY LICENSE NOTICES
The Brutal.ImGui packages
This file ships in all eleven packages named below. They redistribute the third-party
components listed here, each reproduced with the license that governs it.
One file serves all eleven packages, so this table says which components apply to
the package you are holding:
Ahwoo.BRUTAL.ImGui Dear ImGui, and the three stb libraries
compiled into it
Ahwoo.BRUTAL.ImGui.Backends Dear ImGui's platform and renderer
backends, translated to C#
Ahwoo.BRUTAL.ImGui.DemoWindow Dear ImGui's demo sources, translated
to C#
Ahwoo.BRUTAL.ImGui.FreeType Dear ImGui's FreeType font adapter
Ahwoo.BRUTAL.ImPlot ImPlot
Ahwoo.BRUTAL.ImPlot.DemoWindow ImPlot's demo sources, translated to C#
Ahwoo.BRUTAL.ImGui.Native Dear ImGui's native library, and the three
stb libraries compiled into it
Ahwoo.BRUTAL.ImGui.FreeType.Native Dear ImGui's FreeType font adapter, as a
native library
Ahwoo.BRUTAL.ImPlot.Native ImPlot's native library
Ahwoo.BRUTAL.ImGui.Abstractions no third-party code
Ahwoo.BRUTAL.ImGui.Extensions no third-party code
The native libraries ship only in the three .Native packages, each for every
runtime identifier it supports (win-x64, linux-x64, osx-arm64):
Dear ImGui 1.92.2 imgui.dll / libimgui.so / libimgui.dylib
imgui_freetype.dll / libimgui_freetype.so / libimgui_freetype.dylib
ImPlot 0.17 implot.dll / libimplot.so / libimplot.dylib
Dear ImGui vendors three of Sean Barrett's stb libraries, and all three are
compiled into the Dear ImGui binaries shipped here. They have their own section
below.
The managed assemblies are in scope as well as the native libraries. Type names,
enumerant values and entry-point signatures are generated from the corresponding
upstream headers, and the backend and demo assemblies are C# translations of
upstream sources.
Ahwoo.BRUTAL.ImGui.FreeType binds Dear ImGui's FreeType font adapter, which
is Dear ImGui code and is covered by the Dear ImGui section below. FreeType itself
is in none of these eleven packages; it is supplied by Ahwoo.BRUTAL.FreeType,
whose own notices reproduce the FreeType License in full.
==============================================================================
Dear ImGui
==============================================================================
Name Dear ImGui
Version 1.92.2, docking branch
Upstream https://github.com/ocornut/imgui
SPDX MIT
Built from a RocketWerkz fork of the docking branch. The modifications are ours
and do not alter the terms below, which are reproduced from the copy these
packages were built from.
This component covers the imgui and imgui_freetype native libraries, the managed
bindings generated from Dear ImGui's headers, and the C# translations of Dear
ImGui's backend and demo sources.
The MIT License (MIT)
Copyright (c) 2014-2025 Omar Cornut
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
==============================================================================
stb
==============================================================================
Name stb_rect_pack, stb_textedit, stb_truetype
Version 1.01, 1.14, 1.26 respectively
Upstream https://github.com/nothings/stb
SPDX MIT OR Unlicense
Vendored by Dear ImGui as imstb_rectpack.h, imstb_textedit.h and
imstb_truetype.h, and compiled into the Dear ImGui native libraries shipped
here. All three carry the same dual license, which offers a choice between
the MIT License and release into the public domain. It is reproduced once
below, from the copy these packages were built from.
This software is available under 2 licenses -- choose whichever you prefer.
------------------------------------------------------------------------------
ALTERNATIVE A - MIT License
Copyright (c) 2017 Sean Barrett
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
------------------------------------------------------------------------------
ALTERNATIVE B - Public Domain (www.unlicense.org)
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this
software, either in source code form or as a compiled binary, for any purpose,
commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this
software dedicate any and all copyright interest in the software to the public
domain. We make this dedication for the benefit of the public at large and to
the detriment of our heirs and successors. We intend this dedication to be an
overt act of relinquishment in perpetuity of all present and future rights to
this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------
==============================================================================
ImPlot
==============================================================================
Name ImPlot
Version 0.17, upstream commit 3da8bd3 (26 commits after tag v0.16)
Upstream https://github.com/epezent/implot
SPDX MIT
ImPlot is a plotting extension for Dear ImGui. Its version is the one ImPlot
reports for itself; the commit is given because upstream had not tagged 0.17 when
these packages were built.
This component covers the implot native library, the managed bindings generated
from ImPlot's headers, and the C# translation of ImPlot's demo sources.
MIT License
Copyright (c) 2020 Evan Pezent
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -0,0 +1,180 @@
THIRD-PARTY LICENSE NOTICES
The Brutal.ImGui packages
This file ships in all eleven packages named below. They redistribute the third-party
components listed here, each reproduced with the license that governs it.
One file serves all eleven packages, so this table says which components apply to
the package you are holding:
Ahwoo.BRUTAL.ImGui Dear ImGui, and the three stb libraries
compiled into it
Ahwoo.BRUTAL.ImGui.Backends Dear ImGui's platform and renderer
backends, translated to C#
Ahwoo.BRUTAL.ImGui.DemoWindow Dear ImGui's demo sources, translated
to C#
Ahwoo.BRUTAL.ImGui.FreeType Dear ImGui's FreeType font adapter
Ahwoo.BRUTAL.ImPlot ImPlot
Ahwoo.BRUTAL.ImPlot.DemoWindow ImPlot's demo sources, translated to C#
Ahwoo.BRUTAL.ImGui.Native Dear ImGui's native library, and the three
stb libraries compiled into it
Ahwoo.BRUTAL.ImGui.FreeType.Native Dear ImGui's FreeType font adapter, as a
native library
Ahwoo.BRUTAL.ImPlot.Native ImPlot's native library
Ahwoo.BRUTAL.ImGui.Abstractions no third-party code
Ahwoo.BRUTAL.ImGui.Extensions no third-party code
The native libraries ship only in the three .Native packages, each for every
runtime identifier it supports (win-x64, linux-x64, osx-arm64):
Dear ImGui 1.92.2 imgui.dll / libimgui.so / libimgui.dylib
imgui_freetype.dll / libimgui_freetype.so / libimgui_freetype.dylib
ImPlot 0.17 implot.dll / libimplot.so / libimplot.dylib
Dear ImGui vendors three of Sean Barrett's stb libraries, and all three are
compiled into the Dear ImGui binaries shipped here. They have their own section
below.
The managed assemblies are in scope as well as the native libraries. Type names,
enumerant values and entry-point signatures are generated from the corresponding
upstream headers, and the backend and demo assemblies are C# translations of
upstream sources.
Ahwoo.BRUTAL.ImGui.FreeType binds Dear ImGui's FreeType font adapter, which
is Dear ImGui code and is covered by the Dear ImGui section below. FreeType itself
is in none of these eleven packages; it is supplied by Ahwoo.BRUTAL.FreeType,
whose own notices reproduce the FreeType License in full.
==============================================================================
Dear ImGui
==============================================================================
Name Dear ImGui
Version 1.92.2, docking branch
Upstream https://github.com/ocornut/imgui
SPDX MIT
Built from a RocketWerkz fork of the docking branch. The modifications are ours
and do not alter the terms below, which are reproduced from the copy these
packages were built from.
This component covers the imgui and imgui_freetype native libraries, the managed
bindings generated from Dear ImGui's headers, and the C# translations of Dear
ImGui's backend and demo sources.
The MIT License (MIT)
Copyright (c) 2014-2025 Omar Cornut
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
==============================================================================
stb
==============================================================================
Name stb_rect_pack, stb_textedit, stb_truetype
Version 1.01, 1.14, 1.26 respectively
Upstream https://github.com/nothings/stb
SPDX MIT OR Unlicense
Vendored by Dear ImGui as imstb_rectpack.h, imstb_textedit.h and
imstb_truetype.h, and compiled into the Dear ImGui native libraries shipped
here. All three carry the same dual license, which offers a choice between
the MIT License and release into the public domain. It is reproduced once
below, from the copy these packages were built from.
This software is available under 2 licenses -- choose whichever you prefer.
------------------------------------------------------------------------------
ALTERNATIVE A - MIT License
Copyright (c) 2017 Sean Barrett
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
------------------------------------------------------------------------------
ALTERNATIVE B - Public Domain (www.unlicense.org)
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this
software, either in source code form or as a compiled binary, for any purpose,
commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this
software dedicate any and all copyright interest in the software to the public
domain. We make this dedication for the benefit of the public at large and to
the detriment of our heirs and successors. We intend this dedication to be an
overt act of relinquishment in perpetuity of all present and future rights to
this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------
==============================================================================
ImPlot
==============================================================================
Name ImPlot
Version 0.17, upstream commit 3da8bd3 (26 commits after tag v0.16)
Upstream https://github.com/epezent/implot
SPDX MIT
ImPlot is a plotting extension for Dear ImGui. Its version is the one ImPlot
reports for itself; the commit is given because upstream had not tagged 0.17 when
these packages were built.
This component covers the implot native library, the managed bindings generated
from ImPlot's headers, and the C# translation of ImPlot's demo sources.
MIT License
Copyright (c) 2020 Evan Pezent
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -1,26 +1,31 @@
THIRD-PARTY LICENSE NOTICES
The Brutal.ImGui packages
This file ships in all eight packages named below. They redistribute the third-party
This file ships in all eleven packages named below. They redistribute the third-party
components listed here, each reproduced with the license that governs it.
One file serves all eight packages, so this table says which components apply to
One file serves all eleven packages, so this table says which components apply to
the package you are holding:
RocketWerkz.Brutal.ImGui Dear ImGui, and the three stb libraries
Ahwoo.BRUTAL.ImGui Dear ImGui, and the three stb libraries
compiled into it
RocketWerkz.Brutal.ImGui.Backends Dear ImGui's platform and renderer
Ahwoo.BRUTAL.ImGui.Backends Dear ImGui's platform and renderer
backends, translated to C#
RocketWerkz.Brutal.ImGui.DemoWindow Dear ImGui's demo sources, translated
Ahwoo.BRUTAL.ImGui.DemoWindow Dear ImGui's demo sources, translated
to C#
RocketWerkz.Brutal.ImGui.FreeType Dear ImGui's FreeType font adapter
RocketWerkz.Brutal.ImPlot ImPlot
RocketWerkz.Brutal.ImPlot.DemoWindow ImPlot's demo sources, translated to C#
RocketWerkz.Brutal.ImGui.Abstractions no third-party code
RocketWerkz.Brutal.ImGui.Extensions no third-party code
Ahwoo.BRUTAL.ImGui.FreeType Dear ImGui's FreeType font adapter
Ahwoo.BRUTAL.ImPlot ImPlot
Ahwoo.BRUTAL.ImPlot.DemoWindow ImPlot's demo sources, translated to C#
Ahwoo.BRUTAL.ImGui.Native Dear ImGui's native library, and the three
stb libraries compiled into it
Ahwoo.BRUTAL.ImGui.FreeType.Native Dear ImGui's FreeType font adapter, as a
native library
Ahwoo.BRUTAL.ImPlot.Native ImPlot's native library
Ahwoo.BRUTAL.ImGui.Abstractions no third-party code
Ahwoo.BRUTAL.ImGui.Extensions no third-party code
Where a package ships native libraries, it ships them for every runtime identifier
it supports (win-x64, linux-x64, osx-arm64):
The native libraries ship only in the three .Native packages, each for every
runtime identifier it supports (win-x64, linux-x64, osx-arm64):
Dear ImGui 1.92.2 imgui.dll / libimgui.so / libimgui.dylib
imgui_freetype.dll / libimgui_freetype.so / libimgui_freetype.dylib
@ -35,9 +40,9 @@ components listed here, each reproduced with the license that governs it.
upstream headers, and the backend and demo assemblies are C# translations of
upstream sources.
RocketWerkz.Brutal.ImGui.FreeType binds Dear ImGui's FreeType font adapter, which
Ahwoo.BRUTAL.ImGui.FreeType binds Dear ImGui's FreeType font adapter, which
is Dear ImGui code and is covered by the Dear ImGui section below. FreeType itself
is in none of these eight packages; it is supplied by RocketWerkz.Brutal.FreeType,
is in none of these eleven packages; it is supplied by Ahwoo.BRUTAL.FreeType,
whose own notices reproduce the FreeType License in full.

Some files were not shown because too many files have changed in this diff Show more