comparison final_isi/3d.c @ 75:e76a4e19363d

Various cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 14 Aug 2012 05:27:32 +0300
parents c13a2f8c5b10
children
comparison
equal deleted inserted replaced
74:91edd8d1a3f5 75:e76a4e19363d
291 } 291 }
292 } 292 }
293 293
294 /*******************************/ 294 /*******************************/
295 295
296 extern signed int mul32(signed int a,signed int b);
297
298 #define jmul32(a,b) (((long)(a)*(long)(b))>>16)
299
300 eggine_do(char*b,sint rot,int zoom,int basex,int basey) { 296 eggine_do(char*b,sint rot,int zoom,int basex,int basey) {
301 register sint i; sint j; sint fzed[20],fcez[20]; 297 register sint i; sint j; sint fzed[20],fcez[20];
302 298
303 if(obu.faces==bugi_faces){ 299 if(obu.faces==bugi_faces){
304 bugi_vxes[5].y=bugi_vxes[6].y= 300 bugi_vxes[5].y=bugi_vxes[6].y=
305 1000+mul32(700,sini16[(taimeri*13)&255]); 301 1000+mul32(700,sini16[(pwplib_timer()*13)&255]);
306 bugi_vxes[7].y=bugi_vxes[8].y= 302 bugi_vxes[7].y=bugi_vxes[8].y=
307 1000+mul32(700,sini16[(taimeri*7)&255]); 303 1000+mul32(700,sini16[(pwplib_timer()*7)&255]);
308 } 304 }
309 305
310 /***** rotate vertices *****/ 306 /***** rotate vertices *****/
311 307
312 {cyl*v=obu.vxes;xyz*r=obu.rotated; 308 {cyl*v=obu.vxes;xyz*r=obu.rotated;