get the POLYGON MODE

Hi,

I have been trying to get the poygon mode from opengl. How do we get the proper GLenum
value for the 2 symbolic constants indicating whether front-facing and back-facing polygons are rasterized as points, lines, or filled polygons.

Code:
GLint polygonMode[2];
glGetIntegerv(GL_POLYGON_MODE, polygonMode);

Can anyone tell how do we get thhat 2 constants?

R.B

GLint polygonMode;
glGetIntegerv(GL_POLYGON_MODE, &polygonMode);

if ( polyMode == GL_LINE )
;//
if ( polyMode == GL_FILL )
;//
if ( polyMode == GL_POINTS )
;//