Example: glColor3ubv. It looks like these function parameters are getting null-terminated types due to the following in TranslateC:
if (result == "[*c]const GLubyte")
{
// assume a string:
return "?[*:0]const GLubyte";
}
I assume this is for the sake of the return type of glString[i], but I'm not sure where else it would matter, since newer GL functions seem to have switched to GLchar. If it truly only applies to glString[i] then, perhaps it makes sense to remove the special case from TranslateC and instead perform it elsewhere based on the function name.
Example:
glColor3ubv
. It looks like these function parameters are getting null-terminated types due to the following inTranslateC
:I assume this is for the sake of the return type of
glString[i]
, but I'm not sure where else it would matter, since newer GL functions seem to have switched toGLchar
. If it truly only applies toglString[i]
then, perhaps it makes sense to remove the special case fromTranslateC
and instead perform it elsewhere based on the function name.