glGet()

Can someone help me understand what values are returned from this function.

glGet(GL_POLYGON_MODE, &?);
More specifically, what TYPE of data is this returning? From the help files its a pointer, what type of pointer?

It depends upon which flavor of glGet you are using, glGetFloatv(…) or glGetIntegerv(…) and so on.

For GL_POLYGON_MODE I’d use glGetIntegerv(…). For GL_POLYGON_MODE two values are returned, the polygon orientation that applies to the mode, and the mode. See glPolygonMode to see what those values are.

[This message has been edited by DFrey (edited 06-27-2000).]