From dbba6917816624a16ba11e790e7a081b752d347c Mon Sep 17 00:00:00 2001 From: Yogev Ezra Date: Sat, 29 Jan 2011 14:26:43 +0000 Subject: [PATCH] Add 'flatwav' demo sources; force compilation from source; remove pre-compiled binary from SVN. git-svn-id: svn://kolibrios.org@1780 a494cfbc-eb01-0410-851d-a64ba20cac60 --- data/eng/3d/flatwav | Bin 1286 -> 0 bytes data/eng/Makefile | 3 +- data/rus/3d/flatwav | Bin 1286 -> 0 bytes data/rus/Makefile | 3 +- programs/demos/flatwav/trunk/FLATWAV.ASM | 768 +++++++++++++++++++++++ programs/demos/flatwav/trunk/build.bat | 1 + 6 files changed, 773 insertions(+), 2 deletions(-) delete mode 100644 data/eng/3d/flatwav delete mode 100644 data/rus/3d/flatwav create mode 100644 programs/demos/flatwav/trunk/FLATWAV.ASM create mode 100644 programs/demos/flatwav/trunk/build.bat diff --git a/data/eng/3d/flatwav b/data/eng/3d/flatwav deleted file mode 100644 index 408e794950e34c2e86e42fbfc96c7b3a3d76c1ee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1286 zcmV+h1^N0*P(w?F2><|r00001Mv*2LLXK;4&&M{gp_Fn{8zd%ZCwJ3@S2~;&5nbUd z)zaDesX{77xEPx{mJq-Rd!>4-w{aV9nvl{GCtMYg%cIz(BP`J;Sa=|03+;edP887{ zBDsM165LPh8UjBM@6aU1cPU2Sm_HX0eDM~E6be50LZiW!d_-HgZ{@QI2P6ZB=S*6{ z(gnMAO^GazI*_^tVqcpK2R-WyE-*3)6w8~Bm$*{by#q!An1<(0^>L8v5BNurE!JZ=7OBYv>Rf~PCY zBg5>=Aggslx}i=QDYIo4;%bcLvHY1$YjK!jzq=F>Gb_dX10a@{zlI~H>PvQxp)EDq zp>FYFhD+*7Z=XvVW$^!5qP6q+DWMh4#9a5g^B35~Q0T2`)5**!!S;zCg2VuhJs1mk zkK?Bco$!D_9GYEilRa~Uph7D_d-3%bp4I=7x)#0aQv{n_)*oC+&HAIdII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jHg*L` zk^O`v(6!m@lUWr!`T*w-w|1)LX(;K0e_XGc>phMf< zb3nt?$uO>(mK@r6c6BFlfOknKbV(ZwBHxLKe(v2Sdh^pT;vDI=f6L&O67x!2_{xVOH>8DZsfMy`V+LzptKz6K{FsCD#J9 z_&cP%vl#F>Hx1gu$r9e9bRC@GDm#>$C^p!%xUGm}fa|R1z6l{~WwfBn$&16N wKMSl}d`y00Wc|l9tOgxREPilpbf0{<)hdQtESsLS#9Gk;{VX?`8~^|S09H4Ecolor 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,0x20ddeeff ; 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,(SIZE_X+20-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 + ; flag color button + mov eax,8 ; function 8 : define and draw button + mov ebx,(SIZE_X-30)*65536+20 ; [x start] *65536 + [x size] + mov ecx,5*65536+12 ; [y start] *65536 + [y size] + mov edx,2 ; button id + mov esi,0x2288dd ; button color RRGGBB + int 0x40 + ; spped button + mov eax,8 ; function 8 : define and draw button + mov ebx,(SIZE_X-60)*65536+20 ; [x start] *65536 + [x size] + mov ecx,5*65536+12 ; [y start] *65536 + [y size] + mov edx,3 ; button id + mov esi,0x2288dd ; button color RRGGBB + int 0x40 + + mov eax,12 ; function 12:tell os about windowdraw + mov ebx,2 ; 2, end of draw + int 0x40 + + ret + + +; DATA AREA +angle_counter dw 0 +sq dd 0.707 +xo dw 110 ;87 +zo dw 0 +yo dw 125 +shad_flag db 0 +speed_flag db 0 + +triangles: +dw 0,1,10, 10,11,1, 1,2,11, 11,12,2, 2,3,12, 12,13,3, 3,4,13, 13,14,4, 4,5,14 +dw 14,15,5, 5,6,15, 15,16,6, 6,7,16, 16,17,7, 7,8,17, 17,18,8, 8,9,18, 18,19,9 +dw 10,11,20, 20,21,11, 11,12,21, 21,22,12, 12,13,22, 22,23,13, 13,14,23 +dw 23,24,14, 14,15,24, 24,25,15, 15,16,25, 25,26,16, 16,17,26, 26,27,17 +dw 17,18,27, 27,28,18, 18,19,28, 28,29,19, 20,21,30, 30,31,21, 21,22,31 +dw 31,32,22, 22,23,32, 32,33,23, 23,24,33, 33,34,24, 24,25,34, 34,35,25 +dw 25,26,35, 35,36,26, 26,27,36, 36,37,27, 27,28,37, 37,38,28, 28,29,38 +dw 38,39,29 + dd 0xffffffff ;<- end marker + + + +labelt: + db '3d wavy rotaring area' +labellen: +sinbeta rd 1 +cosbeta rd 1 +singamma rd 1 +cosgamma rd 1 +current_angle rd 1 + +points rw points_count*3 + 2 +points_rotated rw points_count*3 + 2 +triangles_with_z rw triangles_count*4 + 2 ; triangles triple dw + z position +sorted_triangles rw triangles_count*3 + 2 +screen rb SIZE_X * SIZE_Y * 3 ; screen buffer +memStack rb 1000 ;memory area for stack +I_END: + + + + diff --git a/programs/demos/flatwav/trunk/build.bat b/programs/demos/flatwav/trunk/build.bat new file mode 100644 index 0000000000..d4c99e6d12 --- /dev/null +++ b/programs/demos/flatwav/trunk/build.bat @@ -0,0 +1 @@ +fasm flatwav.asm flatwav \ No newline at end of file