summaryrefslogtreecommitdiff
path: root/plugins/peopsxgl/draw.h
diff options
context:
space:
mode:
authoriCatButler <i.am.catbutler@gmail.com>2016-04-27 12:18:13 +0100
committeriCatButler <i.am.catbutler@gmail.com>2016-04-27 12:18:13 +0100
commit153c8eb4997d21d3b2965cf38d4348f05c29860f (patch)
tree994a8995a888c47eacb6d650f8c28c0c631d3c50 /plugins/peopsxgl/draw.h
parent580df75296286b65812afdac64d82054279fb235 (diff)
downloadpcsxr-153c8eb4997d21d3b2965cf38d4348f05c29860f.tar.gz
Perspective correct texturing
- replace calls to glOrtho with new matrix (z value becomes w) - store w value for each vertex - if any vertex does not have a w value set whole polygon to 1.0 - Reset vertex between draw calls to prevent stale w values persisting - validate PGXP values using stored copy of original (allow greater variance) - properly convert addresses before passing to plugin - rework memory to use a single pool with offsets - Implement floating point RTPS/RTPT transform, currently disabled.
Diffstat (limited to 'plugins/peopsxgl/draw.h')
-rwxr-xr-xplugins/peopsxgl/draw.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/peopsxgl/draw.h b/plugins/peopsxgl/draw.h
index 2f524904..f50504da 100755
--- a/plugins/peopsxgl/draw.h
+++ b/plugins/peopsxgl/draw.h
@@ -39,8 +39,8 @@ BOOL offset2(unsigned int* addr);
BOOL offset3(unsigned int* addr);
BOOL offset4(unsigned int* addr);
BOOL offsetline(unsigned int* addr);
-void offsetST(void);
-void offsetBlk(void);
+void offsetST(unsigned int* addr);
+void offsetBlk(unsigned int* addr);
void offsetScreenUpload(int Position);
void assignTexture3(void);
void assignTexture4(void);