PDA

View Full Version : get the POLYGON MODE



rbalaji
07-26-2001, 03:45 PM
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

zed
07-26-2001, 04:12 PM
GLint polygonMode;
glGetIntegerv(GL_POLYGON_MODE, &polygonMode);

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