diff options
author | Franklin Wei <franklin@rockbox.org> | 2019-08-09 20:31:24 -0400 |
---|---|---|
committer | Franklin Wei <franklin@rockbox.org> | 2019-08-09 21:27:55 -0400 |
commit | f5bb7fddecc0066a6cfb580538f297cec1def5d8 (patch) | |
tree | 97d943bcf7089b274f30ad25fab591516b16637b /apps/plugins/sdl/progs/quake/r_local.h | |
parent | ee70dad305a94709c877e776d723aee64d023cb5 (diff) | |
download | rockbox-f5bb7fddecc0066a6cfb580538f297cec1def5d8.tar.gz rockbox-f5bb7fddecc0066a6cfb580538f297cec1def5d8.zip |
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
Diffstat (limited to 'apps/plugins/sdl/progs/quake/r_local.h')
-rw-r--r-- | apps/plugins/sdl/progs/quake/r_local.h | 21 |
1 files changed, 21 insertions, 0 deletions
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 | |||
94 | byte reserved[2]; | 94 | byte reserved[2]; |
95 | } clipplane_t; | 95 | } clipplane_t; |
96 | 96 | ||
97 | typedef struct clipplane_fxp_s | ||
98 | { | ||
99 | int normal[3]; | ||
100 | int dist; | ||
101 | struct clipplane_fxp_s *next; | ||
102 | byte leftedge; | ||
103 | byte rightedge; | ||
104 | byte reserved[2]; | ||
105 | } clipplane_fxp_t; | ||
106 | |||
107 | typedef struct clipplane_FPM_s | ||
108 | { | ||
109 | vec3_FPM_t normal; | ||
110 | fixedpoint_t dist; | ||
111 | struct clipplane_FPM_s *next; | ||
112 | byte leftedge; | ||
113 | byte rightedge; | ||
114 | byte reserved[2]; | ||
115 | } clipplane_FPM_t; | ||
116 | |||
97 | extern clipplane_t view_clipplanes[4]; | 117 | extern clipplane_t view_clipplanes[4]; |
118 | extern clipplane_FPM_t view_clipplanesFPM[4]; | ||
98 | 119 | ||
99 | #ifdef USE_PQ_OPT2 | 120 | #ifdef USE_PQ_OPT2 |
100 | extern clipplane_fxp_t view_clipplanes_fxp[4]; | 121 | extern clipplane_fxp_t view_clipplanes_fxp[4]; |