make new opengl source generator

This commit is contained in:
Youmu Liu
2026-08-26 18:12:08 +08:00
parent 65041ff8bc
commit 75bf7fc139
126 changed files with 8934 additions and 26139 deletions
@@ -0,0 +1,30 @@
// -----------------------------------------------------------------------------
// file="GlRegistryElement"
// Project: StgSharp
// Copyright (c) Nitload.
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using System.Collections.Generic;
namespace StgSharp.GenerateGL.Registry
{
/// <summary>
/// Preserves the XML representation shared by every registry model item.
/// </summary>
internal sealed record GlRegistryElement(
GlSourceLocation Location,
string RawXml,
IReadOnlyDictionary<string, string> Attributes
);
internal readonly record struct GlSourceLocation(
int LineNumber,
int LinePosition
);
internal sealed record GlNamedReference(
string Name,
GlRegistryElement Element
);
}