   stencil  [ Help Please ]
  I am drawing a circle with border shadow and with texture as steps below:step 1--------------------------------------------------------------------------------glStencilFunc(GL_ALWAYS, 1, 0xFFFFFFFF);glStencilOp(GL_REPLACE, GL_REPLACE, GL_REPLACE)Render CircleBody();Render Circle Border();Render Circle Shadow();step 2--------------------------------------------------------------------------------glStencilFunc(GL_EQUAL, 1, 0xFFFFFFFF)glStencilOp(GL_KEEP, GL_KEEP, GL_INCR)Render CircleBody();glStencilFunc(GL_EQUAL, 2, 0xFFFFFFFF)glStencilOp(GL_KEEP, GL_KEEP, GL_INCR)Render CircleBody();glStencilFunc(GL_EQUAL, 3, 0xFFFFFFFF)glStencilOp(GL_KEEP, GL_KEEP, GL_INCR)Render CircleBody();step 3--------------------------------------------------------------------------------glStencilFunc(GL_EQUAL, 1, 0xFFFFFFFF)glStencilOp(GL_KEEP, GL_KEEP, GL_INCR)Render Circle Border();glStencilFunc(GL_EQUAL, 1, 0xFFFFFFFF)glStencilOp(GL_KEEP, GL_KEEP, GL_ZERO)Render Circle Shadow();step 4--------------------------------------------------------------------------------glStencilFunc(GL_EQUAL, 4, 0xFFFFFFFF);glStencilOp(GL_KEEP, GL_KEEP, GL_INCR);Render CircleBody Texture();step 5--------------------------------------------------------------------------------glStencilFunc(GL_EQUAL, 2, 0xFFFFFFFF);glStencilOp(GL_KEEP, GL_KEEP, GL_INCR);Render CircleBorder Texture();In step 2 i wanted to increment stencil value from 1 to 4 and for thati have called Render CircleBody(); 3 times ,i think this is not correct.Can any one please tell me how can increment the value from 1 to 4 using1 Render CircleBody(); call.ThanksSoumya   