mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 12:45:41 +00:00
Added GL_APICALL and APIENTRY tokens to GetFunctionNameAndType. Fixes parsing of ES 1.0 and 2.0 headers.
This commit is contained in:
parent
d6edb9e902
commit
cb3a6d10c0
|
@ -273,12 +273,15 @@ namespace CHeaderToXML
|
|||
case "const":
|
||||
// ignore
|
||||
break;
|
||||
case "GL_API":
|
||||
case "CL_API_ENTRY":
|
||||
case "GLAPI": // ES 1.0
|
||||
case "GL_API": // ES 1.1
|
||||
case "GL_APICALL": // ES 2.0
|
||||
case "CL_API_ENTRY": // CL 1.0
|
||||
inRettype = true;
|
||||
break;
|
||||
case "GL_APIENTRY":
|
||||
case "CL_API_CALL":
|
||||
case "APIENTRY": // ES 1.0
|
||||
case "GL_APIENTRY": // ES 1.1 & 2.0
|
||||
case "CL_API_CALL": // CL 1.0
|
||||
inRettype = false;
|
||||
funcname = words [i+1].Substring(Prefix.Length);
|
||||
quit = true;
|
||||
|
|
Loading…
Reference in a new issue