added second 32bit z-buffer for 3d objects only for improve quality for distant objects. 16bit z-buffer is used only now for static z-buffer bitmaps.

This commit is contained in:
Pawel Kolodziejski 2006-05-16 07:28:47 +00:00
parent 317b32e491
commit c842eabf93
8 changed files with 84 additions and 20 deletions

View file

@ -159,6 +159,7 @@ void DriverTinyGL::positionCamera(Vector3d pos, Vector3d interest) {
void DriverTinyGL::clearScreen() {
memset(_zb->pbuf, 0, 640 * 480 * 2);
memset(_zb->zbuf, 0, 640 * 480 * 2);
memset(_zb->zbuf2, 0, 640 * 480 * 4);
}
void DriverTinyGL::flipBuffer() {