Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. // envoi de l'id sur le stencil
  2. glPushAttrib(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); {
  3. glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE); //desactive modif couleur
  4. glEnable(GL_STENCIL_TEST);
  5. glDepthMask(GL_FALSE);
  6. glStencilFunc(GL_ALWAYS, id_, 0xFF);
  7. glStencilOp(GL_KEEP, //stencil fail
  8. GL_KEEP, //stencil pass, depth fail
  9. GL_REPLACE); //stencil pass, depth pass
  10. glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
  11. glScalef(1.02, 1.02, 1.02);
  12. liste_->dessiner();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement