summaryrefslogtreecommitdiff
path: root/plugins/peopsxgl/pgxp_gpu.h
diff options
context:
space:
mode:
authoriCatButler <i.am.catbutler@gmail.com>2017-03-17 21:35:45 +0000
committeriCatButler <i.am.catbutler@gmail.com>2017-03-17 21:35:45 +0000
commit53a4511c71a9ccc310725a9d7f8097b41b48e64e (patch)
treeac6d4231a6d3db9fe68ba13b962302ab0d9455c5 /plugins/peopsxgl/pgxp_gpu.h
parentd7a31360f90c1ef79587018e54ae9665831b7f12 (diff)
downloadpcsxr-53a4511c71a9ccc310725a9d7f8097b41b48e64e.tar.gz
Add support for new visualisations
- vertex colour - new primitive type encoding Now displays semi-transparent as coloured wireframe to allow them to be visible without corrupting the colour information.
Diffstat (limited to 'plugins/peopsxgl/pgxp_gpu.h')
-rw-r--r--plugins/peopsxgl/pgxp_gpu.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/peopsxgl/pgxp_gpu.h b/plugins/peopsxgl/pgxp_gpu.h
index 789993d4..db0496a2 100644
--- a/plugins/peopsxgl/pgxp_gpu.h
+++ b/plugins/peopsxgl/pgxp_gpu.h
@@ -41,10 +41,14 @@ void PGXP_SetDepth(unsigned int addr);
int PGXP_GetVertices(unsigned int* addr, void* pOutput, int xOffs, int yOffs);
void PGXP_glVertexfv(GLfloat* pVertex);
+#define COLOUR_NONE 0
+#define COLOUR_FLAT 1
+#define COLOUR_SMOOTH 2
+
extern unsigned int PGXP_vDebug;
extern unsigned int PGXP_debugFlags[4];
-int PGXP_DrawDebugTriQuad(OGLVertex* vertex1, OGLVertex* vertex2, OGLVertex* vertex3, OGLVertex* vertex4);
-int PGXP_DrawDebugTri(OGLVertex* vertex1, OGLVertex* vertex2, OGLVertex* vertex3);
-int PGXP_DrawDebugQuad(OGLVertex* vertex1, OGLVertex* vertex2, OGLVertex* vertex3, OGLVertex* vertex4);
+int PGXP_DrawDebugTriQuad(OGLVertex* vertex1, OGLVertex* vertex2, OGLVertex* vertex3, OGLVertex* vertex4, int colourMode, int isTextured);
+int PGXP_DrawDebugTri(OGLVertex* vertex1, OGLVertex* vertex2, OGLVertex* vertex3, int colourMode, int isTextured);
+int PGXP_DrawDebugQuad(OGLVertex* vertex1, OGLVertex* vertex2, OGLVertex* vertex3, OGLVertex* vertex4, int colourMode, int isTextured);
#endif // _PGXP_GPU_H_