Dear All,
I am looking forward for implementing layer Clipping for OpenGL ES 2.0 based UI system where in all childern are
clipped inside parent region. Imagine like a Message box as parent with buttons as childern in it. This UI Tree has more than 5 levels of depth ( parent->parent->…parent->leaf child).
The idea is to make sure child is clipped with in Parent bounds
even during rotation. Let me know the right appoarch
- stencil buffers. ( need to know performance hit)
- re-generate the verticies of childern (in this case rect may not stay rect).
- glScissor ( is not helping us during rotation of parent or child)
- Clipping planes ( not directly supported in OpenGL ES )
Regards,
Kumar.k