From 6f4aef89bfaf86b024e4e587837b77194d20d272 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 19 Nov 2010 09:14:20 +0000 Subject: [PATCH] Added translation from "const GLubyte*" to string and added support for struct keyword. --- Source/Bind/GL2/Generator.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/Bind/GL2/Generator.cs b/Source/Bind/GL2/Generator.cs index 23b5da28..af2735cc 100644 --- a/Source/Bind/GL2/Generator.cs +++ b/Source/Bind/GL2/Generator.cs @@ -358,6 +358,14 @@ namespace Bind.GL2 { GLTypes.Add(words[0], "void"); } + else if (words[1] == "const" && words[2] == "GLubyte") + { + GLTypes.Add(words[0], "String"); + } + else if (words[1] == "struct") + { + GLTypes.Add(words[0], words[2]); + } else { GLTypes.Add(words[0], words[1]);