From 5b05c1b9986ebf5ce4d0363cb564638ddb8b6b87 Mon Sep 17 00:00:00 2001 From: Yogev Ezra Date: Sat, 29 Jan 2011 14:13:23 +0000 Subject: [PATCH] Add '3dspiral' demo sources; force compilation from source; remove pre-compiled binary from SVN. git-svn-id: svn://kolibrios.org@1779 a494cfbc-eb01-0410-851d-a64ba20cac60 --- data/eng/3d/3dspiral | Bin 690 -> 0 bytes data/eng/Makefile | 3 +- data/rus/3d/3dspiral | Bin 690 -> 0 bytes data/rus/Makefile | 5 +- programs/demos/3dspiral/trunk/3dspiral.asm | 447 +++++++++++++++++++++ programs/demos/3dspiral/trunk/build.bat | 1 + 6 files changed, 453 insertions(+), 3 deletions(-) delete mode 100644 data/eng/3d/3dspiral delete mode 100644 data/rus/3d/3dspiral create mode 100644 programs/demos/3dspiral/trunk/3dspiral.asm create mode 100644 programs/demos/3dspiral/trunk/build.bat diff --git a/data/eng/3d/3dspiral b/data/eng/3d/3dspiral deleted file mode 100644 index 58d26dfefac3ce9ad906f137a14f4a261b091ce6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 690 zcmV;j0!{r(P(w@X1ONa500001Mv*2LLXK;4&&M{gp_Z;LS@^(luyYAdCfVVD#8g&ui5q(@KF$XKUuECxL zsp**G(`I9WcKJ&kF6SlI+dQ$!Qe4s3dT zC*7abyOhfq>Tyz-KNYUbP z>6fE@E5XYSwx+|dZM`?C!9!*4&D}oSVNCv@y~u&f7pV$~+yH~jn}T;&;lPj!_WKe1 zXofTrv!~KNJKFy30AsfP5egrC$_eE8h34%2OGSz4#4cxn~jX(t)Nd zu}opLS@^(luyYAdCfVVD#8g&ui5q(@KF$XKUuECxL zsp**G(`I9WcKJ&kF6SlI+dQ$!Qe4s3dT zC*7abyOhfq>Tyz-KNYUbP z>6fE@E5XYSwx+|dZM`?C!9!*4&D}oSVNCv@y~u&f7pV$~+yH~jn}T;&;lPj!_WKe1 zXofTrv!~KNJKFy30AsfP5egrC$_eE8h34%2OGSz4#4cxn~jX(t)Nd zu}opcolor gl + mov esi,0x805080d0 ; color of grab bar RRGGBB,8->color gl + mov edi,0x005080d0 ; color of frames RRGGBB + int 0x40 + ; WINDOW LABEL + mov eax,4 ; function 4 : write text to window + mov ebx,8*65536+8 ; [x start] *65536 + [y start] + mov ecx,0x10ddeeff ; font 1 & color ( 0xF0RRGGBB ) + mov edx,labelt ; pointer to text beginning + mov esi,labellen-labelt ; text length + int 0x40 + ; CLOSE BUTTON + mov eax,8 ; function 8 : define and draw button + mov ebx,(maxx+25-19)*65536+12 ; [x start] *65536 + [x size] + mov ecx,5*65536+12 ; [y start] *65536 + [y size] + mov edx,1 ; button id + mov esi,0x6688dd ; button color RRGGBB + int 0x40 + + mov eax,12 ; function 12:tell os about windowdraw + mov ebx,2 ; 2, end of draw + int 0x40 + + ret + +x_resolution dd 800 +vector_x dd 200 +vector_y dd 200 +vector_dir_x db 1 +vector_dir_y db 1 +elipse_dir db 1 + +deg_counter dd ? ; rotation variables +deg_div dd 20 +current_deg dd ? +;cosbeta dd ? +;sinbeta dd ? +;zoo dd 100 ; rotation axle +;xoo dd 40 +;yoo dd 20 +;subx dd ? +;suby dd ? +;subz dd ? + +xobs dd maxx/2 ; 320 observer variables +yobs dd maxy/2 ; 175 +zobs dd -200 +xobssub dd ? +yobssub dd ? +y1obssub dd ? +zobssub dd ? + +sin_variable dd ? +sin_mul dd 60 +sin_gran dd 30 +sin_counter dd 0 +sq dd 724 ; round( (sqrt2)/2*1024 ) +z dd ? +x dd ? +y dd ? +y1 dd ? +xo dd 70 ; center point , (loop counter-1)/2 +yo dd 20 +a dd 70 ; vertical half-axle +b dd 20 ; horizontal half-axle +loop_counter dd 141 ; axle granularity +col dd 0x00ffffff + +labelt: + db ' 3D SHAKING WAVED SPIRAL' +labellen: +screen_buf: + +I_END: + + + + diff --git a/programs/demos/3dspiral/trunk/build.bat b/programs/demos/3dspiral/trunk/build.bat new file mode 100644 index 0000000000..bf2640cda4 --- /dev/null +++ b/programs/demos/3dspiral/trunk/build.bat @@ -0,0 +1 @@ +fasm 3dspiral.asm 3dspiral \ No newline at end of file