From 53a4511c71a9ccc310725a9d7f8097b41b48e64e Mon Sep 17 00:00:00 2001 From: iCatButler Date: Fri, 17 Mar 2017 21:35:45 +0000 Subject: 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. --- plugins/peopsxgl/pgxp_gpu.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'plugins/peopsxgl/pgxp_gpu.h') 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_ -- cgit v1.2.3