From b5a738748175a460f856a1ed8a2e29fa26ebfb14 Mon Sep 17 00:00:00 2001 From: iCatButler Date: Tue, 10 May 2016 21:34:27 +0100 Subject: Add PGXP visual debug mode Toggles using F11 Red = low precision Blue = high precision Yellow = Sprite --- plugins/peopsxgl/pgxp_gpu.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'plugins/peopsxgl/pgxp_gpu.h') diff --git a/plugins/peopsxgl/pgxp_gpu.h b/plugins/peopsxgl/pgxp_gpu.h index 97c5b615..df07ff46 100644 --- a/plugins/peopsxgl/pgxp_gpu.h +++ b/plugins/peopsxgl/pgxp_gpu.h @@ -30,9 +30,20 @@ #include "stdafx.h" +//struct OGLVertex; + +struct OGLVertexTag; +typedef struct OGLVertexTag OGLVertex; + void PGXP_SetMatrix(float left, float right, float bottom, float top, float zNear, float zFar); void PGXP_SetAddress(unsigned int addr); int PGXP_GetVertices(unsigned int* addr, void* pOutput, int xOffs, int yOffs); void PGXP_glVertexfv(GLfloat* pVertex); +extern unsigned int PGXP_vDebug; +extern unsigned int PGXP_debugFlags[4]; +void PGXP_DrawDebugTriQuad(OGLVertex* vertex1, OGLVertex* vertex2, OGLVertex* vertex3, OGLVertex* vertex4); +void PGXP_DrawDebugTri(OGLVertex* vertex1, OGLVertex* vertex2, OGLVertex* vertex3); +void PGXP_DrawDebugQuad(OGLVertex* vertex1, OGLVertex* vertex2, OGLVertex* vertex3, OGLVertex* vertex4); + #endif // _PGXP_GPU_H_ -- cgit v1.2.3