summaryrefslogtreecommitdiff
path: root/plugins/peopsxgl/pgxp_gpu.h
diff options
context:
space:
mode:
authoriCatButler <i.am.catbutler@gmail.com>2016-05-10 21:34:27 +0100
committeriCatButler <i.am.catbutler@gmail.com>2016-05-10 21:34:27 +0100
commitb5a738748175a460f856a1ed8a2e29fa26ebfb14 (patch)
tree8cc060819d9433940859de000bbb986cc45d7458 /plugins/peopsxgl/pgxp_gpu.h
parent1a30cfb9510d4e46960010735d26a344f75cb328 (diff)
downloadpcsxr-b5a738748175a460f856a1ed8a2e29fa26ebfb14.tar.gz
Add PGXP visual debug mode
Toggles using F11 Red = low precision Blue = high precision Yellow = Sprite
Diffstat (limited to 'plugins/peopsxgl/pgxp_gpu.h')
-rw-r--r--plugins/peopsxgl/pgxp_gpu.h11
1 files changed, 11 insertions, 0 deletions
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_