Rev 2974 | Rev 2976 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2974 | Rev 2975 | ||
---|---|---|---|
Line 15... | Line 15... | ||
15 | include 'mem.inc' |
15 | include 'mem.inc' |
16 | include 'dll.inc' |
16 | include 'dll.inc' |
17 | include 'vox_draw.inc' |
17 | include 'vox_draw.inc' |
Line 18... | Line 18... | ||
18 | 18 | ||
19 | @use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load |
19 | @use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load |
Line 20... | Line 20... | ||
20 | caption db 'Voxel editor 12.09.12',0 ;¯®¤¯¨áì ®ª |
20 | caption db 'Voxel editor 01.10.12',0 ;¯®¤¯¨áì ®ª |
21 | 21 | ||
22 | struct FileInfoBlock |
22 | struct FileInfoBlock |
23 | Function dd ? |
23 | Function dd ? |
Line 32... | Line 32... | ||
32 | run_file_70 FileInfoBlock |
32 | run_file_70 FileInfoBlock |
33 | image_data dd 0 ;㪠§ â¥«ì ¢à¥¬¥ãî ¯ ¬ïâì. ¤«ï 㦥 ¯à¥®¡à §®¢ ¨ï ¨§®¡à ¦¥¨ï |
33 | image_data dd 0 ;㪠§ â¥«ì ¢à¥¬¥ãî ¯ ¬ïâì. ¤«ï 㦥 ¯à¥®¡à §®¢ ¨ï ¨§®¡à ¦¥¨ï |
Line 34... | Line 34... | ||
34 | 34 | ||
35 | fn_toolbar db 'toolbar.png',0 |
35 | fn_toolbar db 'toolbar.png',0 |
36 | IMAGE_TOOLBAR_ICON_SIZE equ 16*16*3 |
36 | IMAGE_TOOLBAR_ICON_SIZE equ 16*16*3 |
37 | IMAGE_TOOLBAR_SIZE equ IMAGE_TOOLBAR_ICON_SIZE*22 |
37 | IMAGE_TOOLBAR_SIZE equ IMAGE_TOOLBAR_ICON_SIZE*23 |
38 | image_data_toolbar dd 0 |
38 | image_data_toolbar dd 0 |
39 | cursors_count equ 4 |
39 | cursors_count equ 4 |
Line 40... | Line 40... | ||
40 | IMAGE_CURSORS_SIZE equ 4096*cursors_count ;à §¬¥à ª à⨪¨ á ªãàá®à ¬¨ |
40 | IMAGE_CURSORS_SIZE equ 4096*cursors_count ;à §¬¥à ª à⨪¨ á ªãàá®à ¬¨ |
Line 184... | Line 184... | ||
184 | 184 | ||
185 | stdcall [buf2d_create], buf_0 ;ᮧ¤ ¨¥ ¡ãä¥à ¨§®¡à ¦¥¨ï |
185 | stdcall [buf2d_create], buf_0 ;ᮧ¤ ¨¥ ¡ãä¥à ¨§®¡à ¦¥¨ï |
186 | stdcall [buf2d_create], buf_0z ;ᮧ¤ ¨¥ ¡ãä¥à £«ã¡¨ë |
186 | stdcall [buf2d_create], buf_0z ;ᮧ¤ ¨¥ ¡ãä¥à £«ã¡¨ë |
Line 187... | Line 187... | ||
187 | stdcall [buf2d_create], buf_pl ;ᮧ¤ ¨¥ ¡ãä¥à ¤«ï á¥ç¥¨ï |
187 | stdcall [buf2d_create], buf_pl ;ᮧ¤ ¨¥ ¡ãä¥à ¤«ï á¥ç¥¨ï |
- | 188 | ||
Line 188... | Line 189... | ||
188 | 189 | stdcall [buf2d_vox_brush_create], buf_vox_g3, vox_6_7_z |
|
Line 189... | Line 190... | ||
189 | stdcall [buf2d_vox_brush_create], buf_vox, vox_6_7_z |
190 | stdcall [buf2d_vox_brush_create], buf_vox_g2, vox_6_4_z |
190 | 191 | ||
Line 256... | Line 257... | ||
256 | jle @f |
257 | jle @f |
257 | ;०¨¬ ¬ áèâ ¡¨à®¢ ¨ï ¨§®¡à ¦¥¨ï |
258 | ;०¨¬ ¬ áèâ ¡¨à®¢ ¨ï ¨§®¡à ¦¥¨ï |
258 | sub edx,[scaled_zoom] |
259 | sub edx,[scaled_zoom] |
259 | sub ax,word[buf_0.t] |
260 | sub ax,word[buf_0.t] |
260 | sub bx,word[buf_0.l] |
261 | sub bx,word[buf_0.l] |
261 | stdcall get_mouse_ev_scale, buf_vox, ebx, eax, [scaled_zoom],edx |
262 | stdcall get_mouse_ev_scale, [buf_vox], ebx, eax, [scaled_zoom],edx |
262 | cmp eax,0 |
263 | cmp eax,0 |
263 | je @f |
264 | je @f |
264 | mov ebx,eax |
265 | mov ebx,eax |
265 | and eax,0x3fffffff |
266 | and eax,0x3fffffff |
266 | rol ebx,2 |
267 | rol ebx,2 |
Line 495... | Line 496... | ||
495 | mov edx,23 |
496 | mov edx,23 |
496 | int 0x40 |
497 | int 0x40 |
497 | add ebx,25 shl 16 |
498 | add ebx,25 shl 16 |
498 | mov edx,24 |
499 | mov edx,24 |
499 | int 0x40 |
500 | int 0x40 |
- | 501 | add ebx,25 shl 16 |
|
- | 502 | mov edx,25 |
|
- | 503 | int 0x40 |
|
Line 500... | Line 504... | ||
500 | 504 | ||
501 | ; *** à¨á®¢ ¨¥ ¨ª®®ª ª®¯ª å *** |
505 | ; *** à¨á®¢ ¨¥ ¨ª®®ª ª®¯ª å *** |
502 | mov eax,7 |
506 | mov eax,7 |
503 | mov ebx,[image_data_toolbar] |
507 | mov ebx,[image_data_toolbar] |
Line 517... | Line 521... | ||
517 | int 0x40 |
521 | int 0x40 |
518 | add ebx,IMAGE_TOOLBAR_ICON_SIZE |
522 | add ebx,IMAGE_TOOLBAR_ICON_SIZE |
519 | add edx,(25 shl 16) ;㬥ìè. ¬ áèâ ¡ |
523 | add edx,(25 shl 16) ;㬥ìè. ¬ áèâ ¡ |
520 | int 0x40 |
524 | int 0x40 |
521 | add ebx,IMAGE_TOOLBAR_ICON_SIZE |
525 | add ebx,IMAGE_TOOLBAR_ICON_SIZE |
- | 526 | add edx,(25 shl 16) ;camera 3g 2g |
|
- | 527 | int 0x40 |
|
- | 528 | add ebx,IMAGE_TOOLBAR_ICON_SIZE |
|
522 | add edx,(25 shl 16) ;¯®¢®à®â 1 |
529 | add edx,(25 shl 16) ;¯®¢®à®â 1 |
523 | int 0x40 |
530 | int 0x40 |
524 | add ebx,IMAGE_TOOLBAR_ICON_SIZE |
531 | add ebx,IMAGE_TOOLBAR_ICON_SIZE |
525 | add edx,(25 shl 16) ;¯®¢®à®â 2 |
532 | add edx,(25 shl 16) ;¯®¢®à®â 2 |
526 | int 0x40 |
533 | int 0x40 |
Line 693... | Line 700... | ||
693 | jne @f |
700 | jne @f |
694 | call but_zoom_m |
701 | call but_zoom_m |
695 | @@: |
702 | @@: |
696 | cmp ah,8 |
703 | cmp ah,8 |
697 | jne @f |
704 | jne @f |
698 | call but_3 |
705 | call but_camera_3g_2g |
699 | @@: |
706 | @@: |
700 | cmp ah,9 |
707 | cmp ah,9 |
701 | jne @f |
708 | jne @f |
702 | call but_4 |
709 | call but_3 |
703 | @@: |
710 | @@: |
704 | cmp ah,10 |
711 | cmp ah,10 |
705 | jne @f |
712 | jne @f |
706 | call but_plane_inc |
713 | call but_4 |
707 | @@: |
714 | @@: |
708 | cmp ah,11 |
715 | cmp ah,11 |
709 | jne @f |
716 | jne @f |
710 | call but_plane_dec |
717 | call but_plane_inc |
711 | @@: |
718 | @@: |
712 | cmp ah,12 |
719 | cmp ah,12 |
713 | jne @f |
720 | jne @f |
714 | call but_mode_pen |
721 | call but_plane_dec |
715 | @@: |
722 | @@: |
716 | cmp ah,13 |
723 | cmp ah,13 |
717 | jne @f |
724 | jne @f |
718 | call but_mode_brush |
725 | call but_mode_pen |
719 | @@: |
726 | @@: |
720 | cmp ah,14 |
727 | cmp ah,14 |
721 | jne @f |
728 | jne @f |
722 | call but_mode_clear |
729 | call but_mode_brush |
723 | @@: |
730 | @@: |
724 | cmp ah,15 |
731 | cmp ah,15 |
725 | jne @f |
732 | jne @f |
- | 733 | call but_mode_clear |
|
- | 734 | @@: |
|
- | 735 | cmp ah,16 |
|
- | 736 | jne @f |
|
726 | stdcall set_pen_mode,PEN_MODE_SELECT_COLOR,3,((9 shl 8)+9) shl 16 |
737 | stdcall set_pen_mode,PEN_MODE_SELECT_COLOR,3,((9 shl 8)+9) shl 16 |
727 | call draw_palete |
738 | call draw_palete |
728 | @@: |
739 | @@: |
729 | cmp ah,16 |
740 | cmp ah,17 |
730 | jne @f |
741 | jne @f |
731 | call but_light |
742 | call but_light |
732 | @@: |
743 | @@: |
733 | cmp ah,17 |
744 | cmp ah,18 |
734 | jne @f |
745 | jne @f |
735 | call but_rend_2_2 |
746 | call but_rend_2_2 |
736 | @@: |
747 | @@: |
737 | cmp ah,18 |
748 | cmp ah,19 |
738 | jne @f |
749 | jne @f |
739 | call but_brush_copy |
750 | call but_brush_copy |
740 | @@: |
751 | @@: |
741 | cmp ah,19 |
752 | cmp ah,20 |
742 | jne @f |
753 | jne @f |
743 | call but_brush_draw |
754 | call but_brush_draw |
744 | @@: |
755 | @@: |
745 | cmp ah,20 |
756 | cmp ah,21 |
746 | jne @f |
757 | jne @f |
747 | call but_brush_clear |
758 | call but_brush_clear |
748 | @@: |
759 | @@: |
749 | cmp ah,21 |
760 | cmp ah,22 |
750 | jne @f |
761 | jne @f |
751 | call but_bru_w_m |
762 | call but_bru_w_m |
752 | @@: |
763 | @@: |
753 | cmp ah,22 |
764 | cmp ah,23 |
754 | jne @f |
765 | jne @f |
755 | call but_bru_w_p |
766 | call but_bru_w_p |
756 | @@: |
767 | @@: |
757 | cmp ah,23 |
768 | cmp ah,24 |
758 | jne @f |
769 | jne @f |
759 | call but_bru_h_m |
770 | call but_bru_h_m |
760 | @@: |
771 | @@: |
761 | cmp ah,24 |
772 | cmp ah,25 |
762 | jne @f |
773 | jne @f |
763 | call but_bru_h_p |
774 | call but_bru_h_p |
764 | @@: |
775 | @@: |
765 | cmp ah,1 |
776 | cmp ah,1 |
766 | jne still |
777 | jne still |
Line 770... | Line 781... | ||
770 | cmp dword[buf_r_img],0 |
781 | cmp dword[buf_r_img],0 |
771 | je @f |
782 | je @f |
772 | stdcall [buf2d_delete],buf_r_img |
783 | stdcall [buf2d_delete],buf_r_img |
773 | stdcall [buf2d_delete],buf_r_z |
784 | stdcall [buf2d_delete],buf_r_z |
774 | @@: |
785 | @@: |
- | 786 | stdcall [buf2d_vox_brush_delete], buf_vox_g3 |
|
775 | stdcall [buf2d_vox_brush_delete], buf_vox |
787 | stdcall [buf2d_vox_brush_delete], buf_vox_g2 |
776 | stdcall [buf2d_delete],buf_curs |
788 | stdcall [buf2d_delete],buf_curs |
777 | stdcall [buf2d_delete],buf_curs_8 |
789 | stdcall [buf2d_delete],buf_curs_8 |
778 | stdcall mem.Free,[image_data_toolbar] |
790 | stdcall mem.Free,[image_data_toolbar] |
779 | stdcall mem.Free,[open_file_vox] |
791 | stdcall mem.Free,[open_file_vox] |
780 | mcall -1 |
792 | mcall -1 |
Line 872... | Line 884... | ||
872 | 884 | ||
873 | .end_save_file: |
885 | .end_save_file: |
874 | popad |
886 | popad |
Line -... | Line 887... | ||
- | 887 | ret |
|
- | 888 | ||
- | 889 | ;ᬥ ¢¨¤ ª ¬¥àë ¯à®á¬®âà 3 ¨ 2 £à ¥© |
|
- | 890 | align 4 |
|
- | 891 | but_camera_3g_2g: |
|
- | 892 | cmp dword[buf_vox],buf_vox_g3 |
|
- | 893 | je @f |
|
- | 894 | mov dword[buf_vox],buf_vox_g3 |
|
- | 895 | jmp .end_0 |
|
- | 896 | @@: |
|
- | 897 | mov dword[buf_vox],buf_vox_g2 |
|
- | 898 | .end_0: |
|
- | 899 | call draw_objects |
|
875 | ret |
900 | ret |
876 | 901 | ||
877 | ;㢥«¨ç¥¨¥ ¬ áèâ ¡ |
902 | ;㢥«¨ç¥¨¥ ¬ áèâ ¡ |
878 | align 4 |
903 | align 4 |
879 | but_zoom_p: |
904 | but_zoom_p: |
Line 1111... | Line 1136... | ||
1111 | jle .end_scaled |
1136 | jle .end_scaled |
1112 | ;।¥à 㢥«¨ç¥®© ç á⨠®¡ê¥ªâ |
1137 | ;।¥à 㢥«¨ç¥®© ç á⨠®¡ê¥ªâ |
1113 | mov ebx,[scaled_zoom] |
1138 | mov ebx,[scaled_zoom] |
1114 | sub eax,ebx |
1139 | sub eax,ebx |
1115 | inc ebx |
1140 | inc ebx |
1116 | stdcall [buf2d_vox_obj_draw_3g_scaled], buf_r_img, buf_r_z, buf_vox,\ |
1141 | stdcall [buf2d_vox_obj_draw_3g_scaled], buf_r_img, buf_r_z, [buf_vox],\ |
1117 | [open_file_vox], 0,0, 0, ebx, [cam_x],[cam_y],[cam_z],eax, [sc.work_graph] |
1142 | [open_file_vox], 0,0, 0, ebx, [cam_x],[cam_y],[cam_z],eax, [sc.work_graph] |
1118 | bt dword[mode_light],0 |
1143 | bt dword[mode_light],0 |
1119 | jnc @f |
1144 | jnc @f |
1120 | stdcall [buf2d_vox_obj_draw_3g_shadows], buf_r_img, buf_r_z, buf_vox, 0,0, 0, ebx, 3 |
1145 | stdcall [buf2d_vox_obj_draw_3g_shadows], buf_r_img, buf_r_z, [buf_vox], 0,0, 0, ebx, 3 |
1121 | @@: |
1146 | @@: |
1122 | xor ebx,ebx |
1147 | xor ebx,ebx |
1123 | xor ecx,ecx |
1148 | xor ecx,ecx |
1124 | mov edi,buf_r_img |
1149 | mov edi,buf_r_img |
1125 | stdcall [buf2d_img_hdiv2], edi |
1150 | stdcall [buf2d_img_hdiv2], edi |
Line 1128... | Line 1153... | ||
1128 | shr buf2d_w,1 |
1153 | shr buf2d_w,1 |
1129 | jmp .show |
1154 | jmp .show |
1130 | .end_scaled: |
1155 | .end_scaled: |
Line 1131... | Line 1156... | ||
1131 | 1156 | ||
1132 | inc eax |
1157 | inc eax |
1133 | stdcall [buf2d_vox_obj_draw_3g], buf_r_img, buf_r_z, buf_vox, [open_file_vox], 0,0, 0, eax |
1158 | stdcall [buf2d_vox_obj_draw_3g], buf_r_img, buf_r_z, [buf_vox], [open_file_vox], 0,0, 0, eax |
1134 | stdcall [buf2d_vox_obj_draw_1g], buf_r_img, buf_r_z, [open_file_vox], 0,0, eax |
1159 | stdcall [buf2d_vox_obj_draw_1g], buf_r_img, buf_r_z, [open_file_vox], 0,0, eax |
1135 | bt dword[mode_light],0 |
1160 | bt dword[mode_light],0 |
1136 | jnc @f |
1161 | jnc @f |
1137 | stdcall [buf2d_vox_obj_draw_3g_shadows], buf_r_img, buf_r_z, buf_vox, 0,0, 0, eax, 3 |
1162 | stdcall [buf2d_vox_obj_draw_3g_shadows], buf_r_img, buf_r_z, [buf_vox], 0,0, 0, eax, 3 |
Line 1138... | Line 1163... | ||
1138 | @@: |
1163 | @@: |
1139 | 1164 | ||
1140 | mov edi,buf_r_img |
1165 | mov edi,buf_r_img |
1141 | stdcall [buf2d_img_hdiv2], edi |
1166 | stdcall [buf2d_img_hdiv2], edi |
1142 | shr buf2d_h,1 |
1167 | shr buf2d_h,1 |
Line 1143... | Line 1168... | ||
1143 | stdcall [buf2d_img_wdiv2], edi |
1168 | stdcall [buf2d_img_wdiv2], edi |
1144 | shr buf2d_w,1 |
1169 | shr buf2d_w,1 |
1145 | 1170 | ||
1146 | stdcall [buf2d_vox_obj_get_img_w_3g], buf_vox,[v_zoom] |
1171 | stdcall [buf2d_vox_obj_get_img_w_3g], [buf_vox],[v_zoom] |
1147 | mov ebx,[buf_0.w] |
1172 | mov ebx,[buf_0.w] |
1148 | sub ebx,eax |
1173 | sub ebx,eax |
1149 | shr ebx,1 ;ebx - ¤«ï æ¥â஢ª¨ ¬ «¥ìª¨å ¨§®¡à ¦¥¨© ¯® £®à¨§®â «¨ |
1174 | shr ebx,1 ;ebx - ¤«ï æ¥â஢ª¨ ¬ «¥ìª¨å ¨§®¡à ¦¥¨© ¯® £®à¨§®â «¨ |
1150 | stdcall [buf2d_vox_obj_get_img_h_3g], buf_vox,[v_zoom] |
1175 | stdcall [buf2d_vox_obj_get_img_h_3g], [buf_vox],[v_zoom] |
1151 | cmp eax,[buf_0.h] |
1176 | cmp eax,[buf_0.h] |
1152 | jg @f |
1177 | jg @f |
Line 1431... | Line 1456... | ||
1431 | jne @f |
1456 | jne @f |
1432 | call draw_palete |
1457 | call draw_palete |
1433 | jmp .end_f |
1458 | jmp .end_f |
1434 | @@: |
1459 | @@: |
1435 | push eax ebx ecx |
1460 | push eax ebx ecx |
1436 | stdcall [buf2d_vox_obj_get_img_w_3g], buf_vox,[v_zoom] |
1461 | stdcall [buf2d_vox_obj_get_img_w_3g], [buf_vox],[v_zoom] |
1437 | mov ebx,[buf_0.w] |
1462 | mov ebx,[buf_0.w] |
1438 | sub ebx,eax |
1463 | sub ebx,eax |
1439 | shr ebx,1 ;ebx - ¤«ï æ¥â஢ª¨ ¬ «¥ìª¨å ¨§®¡à ¦¥¨© ¯® £®à¨§®â «¨ |
1464 | shr ebx,1 ;ebx - ¤«ï æ¥â஢ª¨ ¬ «¥ìª¨å ¨§®¡à ¦¥¨© ¯® £®à¨§®â «¨ |
Line 1440... | Line 1465... | ||
1440 | 1465 | ||
1441 | xor ecx,ecx |
1466 | xor ecx,ecx |
1442 | stdcall [buf2d_vox_obj_get_img_h_3g], buf_vox,[v_zoom] |
1467 | stdcall [buf2d_vox_obj_get_img_h_3g], [buf_vox],[v_zoom] |
1443 | cmp eax,[buf_0.h] |
1468 | cmp eax,[buf_0.h] |
1444 | jg @f |
1469 | jg @f |
1445 | mov ecx,[buf_0.h] |
1470 | mov ecx,[buf_0.h] |
1446 | sub ecx,eax |
1471 | sub ecx,eax |
1447 | shr ecx,1 ;ecx - ¤«ï æ¥â஢ª¨ ¬ «¥ìª¨å ¨§®¡à ¦¥¨© ¯® |
1472 | shr ecx,1 ;ecx - ¤«ï æ¥â஢ª¨ ¬ «¥ìª¨å ¨§®¡à ¦¥¨© ¯® ¢¥à⨪ «¨ |
Line 1448... | Line 1473... | ||
1448 | @@: |
1473 | @@: |
1449 | 1474 | ||
1450 | mov eax,[v_zoom] |
1475 | mov eax,[v_zoom] |
1451 | cmp eax,[scaled_zoom] |
1476 | cmp eax,[scaled_zoom] |
1452 | jg @f |
1477 | jg @f |
1453 | ;®¡ëçë© à¥¦¨¬ ¨§®¡à ¦¥¨ï |
1478 | ;®¡ëçë© à¥¦¨¬ ¨§®¡à ¦¥¨ï |
1454 | stdcall [buf2d_vox_obj_draw_3g], buf_0, buf_0z, buf_vox,\ |
1479 | stdcall [buf2d_vox_obj_draw_3g], buf_0, buf_0z, [buf_vox],\ |
1455 | [open_file_vox], ebx,ecx, 0, eax |
1480 | [open_file_vox], ebx,ecx, 0, eax |
1456 | stdcall [buf2d_vox_obj_draw_pl], buf_pl, [open_file_vox],\ |
1481 | stdcall [buf2d_vox_obj_draw_pl], buf_pl, [open_file_vox],\ |
1457 | OT_MAP_X,OT_MAP_Y,[tile_size], eax, [n_plane], [sc.work_graph] |
1482 | OT_MAP_X,OT_MAP_Y,[tile_size], eax, [n_plane], [sc.work_graph] |
1458 | stdcall [buf2d_vox_obj_draw_1g], buf_0, buf_0z,\ |
1483 | stdcall [buf2d_vox_obj_draw_1g], buf_0, buf_0z,\ |
1459 | [open_file_vox], 0,0, eax |
1484 | [open_file_vox], 0,0, eax |
1460 | bt dword[mode_light],0 |
1485 | bt dword[mode_light],0 |
1461 | jnc .end_1 |
1486 | jnc .end_1 |
1462 | stdcall [buf2d_vox_obj_draw_3g_shadows], buf_0, buf_0z, buf_vox, ebx,ecx, 0, eax, 3 |
1487 | stdcall [buf2d_vox_obj_draw_3g_shadows], buf_0, buf_0z, [buf_vox], ebx,ecx, 0, eax, 3 |
1463 | .end_1: |
1488 | .end_1: |
1464 | jmp .end_0 |
1489 | jmp .end_0 |
1465 | @@: |
1490 | @@: |
1466 | ;०¨¬ ¬ áèâ ¡¨à®¢ ¨ï ¨§®¡à ¦¥¨ï |
1491 | ;०¨¬ ¬ áèâ ¡¨à®¢ ¨ï ¨§®¡à ¦¥¨ï |
1467 | sub eax,[scaled_zoom] |
1492 | sub eax,[scaled_zoom] |
1468 | stdcall [buf2d_vox_obj_draw_3g_scaled], buf_0, buf_0z, buf_vox,\ |
1493 | stdcall [buf2d_vox_obj_draw_3g_scaled], buf_0, buf_0z, [buf_vox],\ |
1469 | [open_file_vox], 0,0, 0, [scaled_zoom], [cam_x],[cam_y],[cam_z],eax, [sc.work_graph] ;scroll -> 2^eax |
1494 | [open_file_vox], 0,0, 0, [scaled_zoom], [cam_x],[cam_y],[cam_z],eax, [sc.work_graph] ;scroll -> 2^eax |
1470 | stdcall [buf2d_vox_obj_draw_pl_scaled], buf_pl, [open_file_vox],\ |
1495 | stdcall [buf2d_vox_obj_draw_pl_scaled], buf_pl, [open_file_vox],\ |
1471 | OT_MAP_X,OT_MAP_Y,[tile_size], [scaled_zoom], [n_plane], [sc.work_graph],[cam_x],[cam_y],[cam_z],eax |
1496 | OT_MAP_X,OT_MAP_Y,[tile_size], [scaled_zoom], [n_plane], [sc.work_graph],[cam_x],[cam_y],[cam_z],eax |
1472 | bt dword[mode_light],0 |
1497 | bt dword[mode_light],0 |
1473 | jnc .end_2 |
1498 | jnc .end_2 |
1474 | stdcall [buf2d_vox_obj_draw_3g_shadows], buf_0, buf_0z, buf_vox, 0,0, 0, [scaled_zoom], 3 |
1499 | stdcall [buf2d_vox_obj_draw_3g_shadows], buf_0, buf_0z, [buf_vox], 0,0, 0, [scaled_zoom], 3 |
1475 | .end_2: |
1500 | .end_2: |
Line 1476... | Line 1501... | ||
1476 | .end_0: |
1501 | .end_0: |
Line 1989... | Line 2014... | ||
1989 | dd 0 ;+16 color |
2014 | dd 0 ;+16 color |
1990 | db 24 ;+20 bit in pixel |
2015 | db 24 ;+20 bit in pixel |
Line 1991... | Line 2016... | ||
1991 | 2016 | ||
1992 | ;¤ ë¥ ¤«ï ᮧ¤ ¨ï ¬¨¨¬ «ì®£® ¥¤¨¨ç®£® ¢®ªá¥«ï |
2017 | ;¤ ë¥ ¤«ï ᮧ¤ ¨ï ¬¨¨¬ «ì®£® ¥¤¨¨ç®£® ¢®ªá¥«ï |
1993 | align 4 |
2018 | align 4 |
1994 | vox_6_7_z: |
2019 | vox_6_7_z: ;¢®ªá¥«ì £¤¥ ¢¨¤® 3 £à ¨ |
1995 | dd 0,0,1,1,0,0,\ |
2020 | dd 0,0,1,1,0,0,\ |
1996 | 0,2,2,2,2,0,\ |
2021 | 0,2,2,2,2,0,\ |
1997 | 2,2,2,2,2,2,\ |
2022 | 2,2,2,2,2,2,\ |
1998 | 2,3,2,2,3,2,\ |
2023 | 2,3,2,2,3,2,\ |
1999 | 2,3,3,3,3,2,\ |
2024 | 2,3,3,3,3,2,\ |
2000 | 0,3,3,3,3,0,\ |
2025 | 0,3,3,3,3,0,\ |
Line 2001... | Line 2026... | ||
2001 | 0,0,3,3,0,0 |
2026 | 0,0,3,3,0,0 |
- | 2027 | ||
- | 2028 | align 4 |
|
- | 2029 | vox_6_4_z: ;¢®ªá¥«ì, £¤¥ ¢¨¤® 2 ¡®ª®¢ë¥ £à ¨ ¢¥à奩 £à ¨ ¥ ¢¨¤® |
|
- | 2030 | dd 1,2,3,3,2,1,\ |
|
- | 2031 | 1,2,3,3,2,1,\ |
|
- | 2032 | 1,2,3,3,2,1,\ |
|
- | 2033 | 1,2,3,3,2,1 |
|
- | 2034 | ||
- | 2035 | align 4 |
|
2002 | 2036 | buf_vox dd buf_vox_g3 |
|
2003 | align 4 |
2037 | |
2004 | buf_vox: |
2038 | buf_vox_g3: |
Line -... | Line 2039... | ||
- | 2039 | db 6,7,4,3 ;w,h,h_osn,n |
|
- | 2040 | rb BUF_STRUCT_SIZE*(3+1) |
|
- | 2041 | ||
- | 2042 | align 4 |
|
- | 2043 | buf_vox_g2: |
|
2005 | db 6,7,4,3 ;w,h,h_osn,n |
2044 | db 6,4,0,3 ;w,h,h_osn,n |
2006 | rb BUF_STRUCT_SIZE*(3+1) |
2045 | rb BUF_STRUCT_SIZE*(3+1) |
2007 | 2046 | ||
2008 | i_end: |
2047 | i_end: |
2009 | wnd_s_pos: ;¬¥áâ® ¤«ï áâ஥ª áâ à⮢®© ¯®§¨æ¨¨ ®ª |
2048 | wnd_s_pos: ;¬¥áâ® ¤«ï áâ஥ª áâ à⮢®© ¯®§¨æ¨¨ ®ª |