Q:

How to get symbolic constant with glGet?

Is it appropriate way to query OpenGL about symbolic constant value? Or there is more elegant way?
GLint sbf[20];
glGetIntegerv(GL_STENCIL_BACK_FAIL, sbf);

Note:

GL_STENCIL_BACK_FAIL
  data returns one value, a symbolic constant indicating what action is taken for back-facing polygons when the stencil test fails. The initial value is GL_KEEP. See glStencilOpSeparate.

A:

My suggestions are:
GLint sbf = 0;
glGetIntegerv(GL_STENCIL_BACK_FAIL, &sbf);

You can then take whatever actions you want by implementing if statements depending on the value of sbf.  

