Depth buffer?

BlitzMax Forums/BlitzMax Programming/Depth buffer?

Has anyone tried using a depth buffer in BlitzMax (OpenGL) to limit drawing to only the objects that are closest? ... and used it for 2D where things overlap a lot? And what kind of results did you get?