Return ARB_v/f_prog-style output attrib string.
{
const char *vertResults[] = {
"result.position",
"result.color.primary",
"result.color.secondary",
"result.fogcoord",
"result.texcoord[0]",
"result.texcoord[1]",
"result.texcoord[2]",
"result.texcoord[3]",
"result.texcoord[4]",
"result.texcoord[5]",
"result.texcoord[6]",
"result.texcoord[7]",
"result.varying[0]",
"result.varying[1]",
"result.varying[2]",
"result.varying[3]",
"result.varying[4]",
"result.varying[5]",
"result.varying[6]",
"result.varying[7]"
};
const char *fragResults[] = {
"result.color",
"result.color(half)",
"result.depth",
"result.color[0]",
"result.color[1]",
"result.color[2]",
"result.color[3]"
};
if (progType == GL_VERTEX_PROGRAM_ARB) {
assert(index < sizeof(vertResults) / sizeof(vertResults[0]));
return vertResults[index];
}
else {
assert(index < sizeof(fragResults) / sizeof(fragResults[0]));
return fragResults[index];
}
}