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,56 @@
// -----------------------------------------------------------------------------
// file="GlCommandDefinition"
// Project: StgSharp
// Copyright (c) Nitload.
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using System.Collections.Generic;
namespace StgSharp.GenerateGL.Registry
{
internal sealed record GlCommandBlock(
string? Namespace,
IReadOnlyList<GlCommandDefinition> Commands,
GlRegistryElement Element
);
internal sealed record GlCommandDefinition(
string Name,
GlReturnDefinition Return,
IReadOnlyList<GlParameterDefinition> Parameters,
IReadOnlyList<GlNamedReference> Aliases,
IReadOnlyList<GlNamedReference> VectorEquivalents,
IReadOnlyList<GlCommandProtocol> Protocols,
string? Comment,
GlRegistryElement Element
);
internal sealed record GlReturnDefinition(
string DeclarationText,
string? TypeName,
string? Group,
string? Kind,
string? ObjectClass,
GlRegistryElement Element
);
internal sealed record GlParameterDefinition(
string Name,
string DeclarationText,
string? TypeName,
string? Group,
string? Kind,
string? ObjectClass,
string? Length,
GlRegistryElement Element
);
internal sealed record GlCommandProtocol(
string Type,
string Opcode,
string? Name,
string? Comment,
GlRegistryElement Element
);
}