1 line
7.8 KiB
C
1 line
7.8 KiB
C
|
#include "WolfDef.h"
#include <stdlib.h>
Word MathSize; /* What size of math data is calculated? */
Word *scaleatzptr; /* Pointer to the scale table for z projection */
short *xtoviewangle; /* Screen x to view angle */
short *viewangletox; /* View angle to screen x */
short *finetangent; /* Fine tangent table */
short *finesine; /* Fine sine table */
fixed_t sintable[ANGLES] = {
0,3,6,9,13,16,19,22,25,28,31,34,37,41,44,47,
50,53,56,59,62,65,68,71,74,77,80,83,86,89,92,95,
98,100,103,106,109,112,115,117,120,123,126,128,131,134,136,139,
142,144,147,149,152,154,157,159,162,164,167,169,171,174,176,178,
180,183,185,187,189,191,193,195,197,199,201,203,205,207,208,210,
212,214,215,217,219,220,222,223,225,226,228,229,231,232,233,234,
236,237,238,239,240,241,242,243,244,245,246,247,247,248,249,249,
250,251,251,252,252,253,253,253,254,254,254,255,255,255,255,255,
255,255,255,255,255,255,254,254,254,253,253,253,252,252,251,251,
250,249,249,248,247,247,246,245,244,243,242,241,240,239,238,237,
236,234,233,232,231,229,228,226,225,223,222,220,219,217,215,214,
212,210,208,207,205,203,201,199,197,195,193,191,189,187,185,183,
180,178,176,174,171,169,167,164,162,159,157,154,152,149,147,144,
142,139,136,134,131,128,126,123,120,117,115,112,109,106,103,100,
98,95,92,89,86,83,80,77,74,71,68,65,62,59,56,53,
50,47,44,41,37,34,31,28,25,22,19,16,13,9,6,3,
0,-3,-6,-9,-13,-16,-19,-22,-25,-28,-31,-34,-37,-41,-44,-47,
-50,-53,-56,-59,-62,-65,-68,-71,-74,-77,-80,-83,-86,-89,-92,-95,
-98,-100,-103,-106,-109,-112,-115,-117,-120,-123,-126,-128,-131,-134,-136,-139,
-142,-144,-147,-149,-152,-154,-157,-159,-162,-164,-167,-169,-171,-174,-176,-178,
-180,-183,-185,-187,-189,-191,-193,-195,-197,-199,-201,-203,-205,-207,-208,-210,
-212,-214,-215,-217,-219,-220,-222,-223,-225,-226,-228,-229,-231,-232,-233,-234,
-236,-237,-238,-239,-240,-241,-242,-243,-244,-245,-246,-247,-247,-248,-249,-249,
-250,-251,-251,-252,-252,-253,-253,-253,-254,-254,-254,-255,-255,-255,-255,-255,
-255,-255,-255,-255,-255,-255,-254,-254,-254,-253,-253,-253,-252,-252,-251,-251,
-250,-249,-249,-248,-247,-247,-246,-245,-244,-243,-242,-241,-240,-239,-238,-237,
-236,-234,-233,-232,-231,-229,-228,-226,-225,-223,-222,-220,-219,-217,-215,-214,
-212,-210,-208,-207,-205,-203,-201,-199,-197,-195,-193,-191,-189,-187,-185,-183,
-180,-178,-176,-174,-171,-169,-167,-164,-162,-159,-157,-154,-152,-149,-147,-144,
-142,-139,-136,-134,-131,-128,-126,-123,-120,-117,-115,-112,-109,-106,-103,-100,
-98,-95,-92,-89,-86,-83,-80,-77,-74,-71,-68,-65,-62,-59,-56,-53,
-50,-47,-44,-41,-37,-34,-31,-28,-25,-22,-19,-16,-13,-9,-6,-3
};
fixed_t costable[ANGLES] = {
255,255,255,255,255,255,254,254,254,253,253,253,252,252,251,251,
250,249,249,248,247,247,246,245,244,243,242,241,240,239,238,237,
236,234,233,232,231,229,228,226,225,223,222,220,219,217,215,214,
212,210,208,207,205,203,201,199,197,195,193,191,189,187,185,183,
180,178,176,174,171,169,167,164,162,159,157,154,152,149,147,144,
142,139,136,134,131,128,126,123,120,117,115,112,109,106,103,100,
98,95,92,89,86,83,80,77,74,71,68,65,62,59,56,53,
50,47,44,41,37,34,31,28,25,22,19,16,13,9,6,3,
0,-3,-6,-9,-13,-16,-19,-22,-25,-28,-31,-34,-37,-41,-44,-47,
-50,-53,-56,-59,-62,-65,-68,-71,-74,-77,-80,-83,-86,-89,-92,-95,
-98,-100,-103,-106,-109,-112,-115,-117,-120,-123,-126,-128,-131,-134,-136,-139,
-142,-144,-147,-149,-152,-154,-157,-159,-162,-164,-167,-169,-171,-174,-176,-178,
-180,-183,-185,-187,-189,-191,-193,-195,-197,-199,-201,-203,-205,-207,-208,-210,
-212,-214,-215,-217,-219,-220,-222,-223,-225,-226,-228,-229,-231,-232,-233,-234,
-236,-237,-238,-239,-240,-241,-242,-243,-244,-245,-246,-247,-247,-248,-249,-249,
-250,-251,-251,-252,-252,-253,-253,-253,-254,-254,-254,-255,-255,-255,-255,-255,
-255,-255,-255,-255,-255,-255,-254,-254,-254,-253,-253,-253,-252,-252,-251,-251,
-250,-249,-249,-248,-247,-247,-246,-245,-244,-243,-242,-241,-240,-239,-238,-237,
-236,-234,-233,-232,-231,-229,-228,-226,-225,-223,-222,-220,-219,-217,-215,-214,
-212,-210,-208,-207,-205,-203,-201,-199,-197,-195,-193,-191,-189,-187,-185,-183,
-180,-178,-176,-174,-171,-169,-167,-164,-162,-159,-157,-154,-152
|