I want to clip some closed path area from texture image in OpenGL ES and iPhone SDK.
I found that it can be done with planes and glClipPlanef function something like this:
glClipPlanef(GL_CLIP_PLANE0, v);
glEnable(GL_CLIP_PLANE0);
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
glDisable(GL_CLIP_PLANE0);
where v is a const GLfloat array of coordinates.
I can not figure out how to set these coords to clip the closed path area?