make some changes to opengl api gen, discussing on rewrite of all opengl binding, making it neat and structral

This commit is contained in:
Youmu Liu
2026-08-25 17:33:45 +08:00
parent 708a915549
commit 65041ff8bc
63 changed files with 14404 additions and 8851 deletions
@@ -101,7 +101,8 @@ namespace GenerateGL.CodeGen
{
string pName = p.Element("name")?.Value ?? string.Empty;
string cType = BuildCType(p, out int pointerLevel, out _, out bool isConst);
parameters.Add(new GlParam(pName, cType, pointerLevel, isConst));
string? length = p.Attribute("len")?.Value;
parameters.Add(new GlParam(pName, cType, pointerLevel, isConst, length));
}
if (!string.IsNullOrEmpty(name)) {