2 Copyright (C) 2003 Rice1964
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef _UCODE_DEFS_H_
21 #define _UCODE_DEFS_H_
127 unsigned int width:12;
136 unsigned int prim_level:8;
137 unsigned int prim_min_level:8;
144 unsigned int fillcolor:16;
145 unsigned int fillcolor2:16;
158 unsigned int param:8;
165 unsigned int projection:1;
176 unsigned int projection:1;
183 unsigned int param:8;
188 unsigned int nopush:1;
190 unsigned int projection:1;
192 unsigned int len2:16;
201 unsigned int offset:16;
207 unsigned int offset:16;
214 unsigned int enable_gbi0:1;
215 unsigned int enable_gbi2:1;
218 unsigned int level:3;
221 unsigned int scaleT:16;
222 unsigned int scaleS:16;
244 unsigned int shifts:4;
245 unsigned int masks:4;
248 unsigned int shiftt:4;
249 unsigned int maskt:4;
252 unsigned int palette:4;
260 GGBI0_Ln3DTri2 ln3dtri2;
264 GGBI2_Line3D gbi2line3d;
270 GGBI0_Dlist gbi0dlist;
271 GGBI0_Matrix gbi0matrix;
272 GGBI0_PopMatrix gbi0popmatrix;
273 GGBI2_Matrix gbi2matrix;
274 GGBI0_MoveWord gbi0moveword;
275 GGBI2_MoveWord gbi2moveword;
282 GsetothermodeH setothermodeH;
283 GsetothermodeL setothermodeL;
285 Gperspnorm perspnorm;
286 Gsetcombine setcombine;
290 Gsettilesize settilesize;
293 long long int force_structure_alignment;
304 unsigned int yl:12; /* Y coordinate of upper left */
305 unsigned int xl:12; /* X coordinate of upper left */
306 unsigned int cmd:8; /* command */
308 unsigned int yh:12; /* Y coordinate of lower right */
309 unsigned int xh:12; /* X coordinate of lower right */
310 unsigned int tile:3; /* Tile descriptor index */
311 unsigned int pad1:5; /* Padding */
313 unsigned int t:16; /* T texture coord at top left */
314 unsigned int s:16; /* S texture coord at top left */
316 unsigned int dtdy:16;/* Change in T per change in Y */
317 unsigned int dsdx:16;/* Change in S per change in X */