]> Pileus Git - grits/commit
Rewrite expose to preserve the depth buffer
authorAndy Spencer <andy753421@gmail.com>
Mon, 6 Feb 2012 05:41:44 +0000 (05:41 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 6 Feb 2012 06:30:17 +0000 (06:30 +0000)
commit4a5d5cca8b16c4c1daecfdfb55e8bbe7a0250b6f
tree39f332e6dc613f7a006c68900363bbd7bf3c7306
parent15b7d18d9ddc148e499548a399881206eb2e39f4
Rewrite expose to preserve the depth buffer

Sorted objects are now drawn with depth testing enabled. Unsorted
objects are drawn without depth testing. This mostly affects
GRITS_LEVEL_WORD+n objects.

Objects at other levels such as BACKGROUND, OVERLAY, and HUD should
generally disable sorting so that they are always drawn to the screen.
For those levels, the depth-buffer is set to read-only. This preserves
the depth buffer so  that it can be used later on to get the world-level
depth at a given screen location.
src/grits-opengl.c
src/plugins/elev.c