From f5bb7fddecc0066a6cfb580538f297cec1def5d8 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Fri, 9 Aug 2019 20:31:24 -0400 Subject: quake: merge the remaining Pocket Quake PQ_OPT changes I didn't do _OPT3 because it's disabled in the PQ source. This gives as +0.2FPS boost over the last commit. Change-Id: I9c3c8fb7bd23262beb810da6e9469d6b6c4b2a81 --- apps/plugins/sdl/progs/quake/r_local.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'apps/plugins/sdl/progs/quake/r_local.h') diff --git a/apps/plugins/sdl/progs/quake/r_local.h b/apps/plugins/sdl/progs/quake/r_local.h index ae3416ba2f..adb9565b8b 100644 --- a/apps/plugins/sdl/progs/quake/r_local.h +++ b/apps/plugins/sdl/progs/quake/r_local.h @@ -94,7 +94,28 @@ typedef struct clipplane_s byte reserved[2]; } clipplane_t; +typedef struct clipplane_fxp_s +{ + int normal[3]; + int dist; + struct clipplane_fxp_s *next; + byte leftedge; + byte rightedge; + byte reserved[2]; +} clipplane_fxp_t; + +typedef struct clipplane_FPM_s +{ + vec3_FPM_t normal; + fixedpoint_t dist; + struct clipplane_FPM_s *next; + byte leftedge; + byte rightedge; + byte reserved[2]; +} clipplane_FPM_t; + extern clipplane_t view_clipplanes[4]; +extern clipplane_FPM_t view_clipplanesFPM[4]; #ifdef USE_PQ_OPT2 extern clipplane_fxp_t view_clipplanes_fxp[4]; -- cgit v1.2.3