Improving SCE GU readability

This commit is contained in:
Francisco Javier Trujillo Mata
2024-07-22 22:49:13 +02:00
parent ebae12f13f
commit 191880f973
66 changed files with 1312 additions and 482 deletions

View File

@@ -8,13 +8,13 @@
#include "guInternal.h"
void sceGuDepthBuffer(void* zbp, int zbw)
void sceGuDepthBuffer(void *zbp, int zbw)
{
gu_draw_buffer.depth_buffer = zbp;
if (!gu_draw_buffer.depth_width || (gu_draw_buffer.depth_width != zbw))
gu_draw_buffer.depth_width = zbw;
sendCommandi(158,((unsigned int)zbp) & 0xffffff);
sendCommandi(159,((((unsigned int)zbp) & 0xff000000) >> 8)|zbw);
sendCommandi(Z_BUF_PTR, ((unsigned int)zbp) & 0xffffff);
sendCommandi(Z_BUF_WIDTH, ((((unsigned int)zbp) & 0xff000000) >> 8) | zbw);
}