iphone - Open GL ES - Z order when rendering 2D sprites -
I was thinking that OpenGL EES was a way of presenting and rendering a batch of quads (provided with changes in texture page). Them in z order (or reverse)
Note that I do not want a zubfire, I just want the quad provided in the order of zDepth.
Now I know that people will just say they are in order, well I group them by texture pages. However you can imagine that there are some cases where sprites need to appear in front of another from a textual page.
So I was wondering whether I would be assigning quads az to OpenGL ES to honor this?
Any help received greatness.
RIP Rich
Get whatever you want without jj buffer / depth buffer Can not .. What are you asking for the depth buffer's work without having it enabled!
When the Z buffer is enabled, then every OpenGL draws on a pixel. It looks at the current z value of pixels and then decides whether to attract it or not.
When the depth buffer is not enabled, it only overwrites the current z of the existing pixel.