/programs/media/voxel_editor/utilites/Tupfile.lua |
---|
1,2 → 1,3 |
if tup.getconfig("NO_FASM") ~= "" then return end |
tup.foreach_rule({"vox_creator.asm", "vox_mover.asm", "vox_tgl.asm"}, "fasm %f %o " .. tup.getconfig("KPACK_CMD"), "%B") |
tup.rule("echo lang fix " .. ((tup.getconfig("LANG") == "") and "en" or tup.getconfig("LANG")) .. " > lang.inc", {"lang.inc"}) |
tup.foreach_rule({"vox_creator.asm", "vox_mover.asm", "vox_tgl.asm", extra_inputs = {"lang.inc"}}, "fasm %f %o " .. tup.getconfig("KPACK_CMD"), "%B") |
/programs/media/voxel_editor/utilites/build_en.bat |
---|
0,0 → 1,10 |
if not exist bin mkdir bin |
@erase lang.inc |
@echo lang fix en >lang.inc |
@fasm.exe -m 16384 vox_creator.asm bin\vox_creator.kex |
@kpack bin\vox_creator.kex |
@fasm.exe -m 16384 vox_mover.asm bin\vox_mover.kex |
@kpack bin\vox_mover.kex |
@fasm.exe -m 16384 vox_tgl.asm bin\vox_tgl.kex |
@kpack bin\vox_tgl.kex |
pause |
/programs/media/voxel_editor/utilites/build_ru.bat |
---|
1,6 → 1,6 |
if not exist bin mkdir bin |
if not exist bin\buf2d.obj @fasm.exe -m 16384 ..\..\..\develop\libraries\TinyGL\asm_fork\tinygl.asm bin\tinygl.obj |
@kpack bin\tinygl.obj |
@erase lang.inc |
@echo lang fix ru >lang.inc |
@fasm.exe -m 16384 vox_creator.asm bin\vox_creator.kex |
@kpack bin\vox_creator.kex |
@fasm.exe -m 16384 vox_mover.asm bin\vox_mover.kex |
/programs/media/voxel_editor/utilites/vox_creator.asm |
---|
8,6 → 8,7 |
include '../../../../programs/KOSfuncs.inc' |
include '../../../../programs/load_img.inc' |
include '../trunk/str.inc' |
include 'lang.inc' |
vox_offs_tree_table equ 4 |
vox_offs_data equ 12 |
15,7 → 16,11 |
include '../trunk/vox_rotate.inc' |
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load |
caption db 'Voxel creator 22.03.18',0 ;¯®¤¯¨áì ®ª |
if lang eq ru |
caption db '®§¤ â¥«ì ¢®ªá¥«¥© 04.05.20',0 ;¯®¤¯¨áì ®ª |
else |
caption db 'Voxel creator 04.05.20',0 |
end if |
BUF_STRUCT_SIZE equ 21 |
buf2d_data equ dword[edi] ;¤ ë¥ ¡ãä¥à ¨§®¡à ¦¥¨ï |
27,14 → 32,16 |
buf2d_color equ dword[edi+16] ;梥â ä® ¡ãä¥à |
buf2d_bits equ byte[edi+20] ;ª®«¨ç¥á⢮ ¡¨â ¢ 1-© â®çª¥ ¨§®¡à ¦¥¨ï |
vox_offs_tree_table equ 4 |
vox_offs_data equ 12 |
run_file_70 FileInfoBlock |
vox_obj_size dd 0 ;à §¬¥à ¢®ªá¥«ì®£® ®¡ê¥ªâ (¤«ï ãáª®à¥¨ï ¢áâ ¢ª¨) |
txt_space db ' ',0 |
if lang eq ru |
txt_pref db ' ¡ ',0,' ¡',0,' ¡',0,' ¡',0 ;¯à¨áâ ¢ª¨: ª¨«®, ¬¥£ , £¨£ |
txt_f_size: db ' §¬¥à: ' |
else |
txt_pref db ' b ',0,' Kb',0,' Mb',0,' Gb',0 ;¯à¨áâ ¢ª¨: ª¨«®, ¬¥£ , £¨£ |
txt_f_size: db 'Size: ' |
end if |
.size: rb 16 |
IMAGE_TOOLBAR_ICON_SIZE equ 16*16*3 |
469,42 → 476,52 |
cmp ah,3 |
jne @f |
call but_new_file |
jmp still |
@@: |
cmp ah,4 |
jne @f |
call but_open_file |
call but_open_file ;®âªàë⨥ ¢®ªá¥«ì®£® ä ©« |
jmp still |
@@: |
cmp ah,5 |
jne @f |
call but_save_file |
jmp still |
@@: |
cmp ah,6 |
jne @f |
call but_1 |
jmp still |
@@: |
cmp ah,7 |
jne @f |
call but_2 |
jmp still |
@@: |
cmp ah,8 |
jne @f |
call but_3 |
jmp still |
@@: |
cmp ah,9 |
jne @f |
stdcall but_run, 0 |
jmp still |
@@: |
cmp ah,10 |
jne @f |
stdcall but_run, 1 |
jmp still |
@@: |
cmp ah,11 |
jne @f |
call but_5 |
call but_stop |
jmp still |
@@: |
cmp ah,12 |
jne @f |
call but_rot_z |
jmp still |
@@: |
cmp ah,1 |
jne still |
769,7 → 786,7 |
k_scale dd 0 |
n_plane dd 0 |
calc db 0 |
calc db 0 ;¥á«¨ =1, â® ¨¤¥â ᮧ¤ ¨¥ ®¡ê¥ªâ |
; ᮧ¤ ¨¥ ¢®ªá¥«ï ¢ 3 íâ ¯ : |
; 1) ¨é¥¬ ¬¥áâ® ¢ áâàãªâãॠ¤¥à¥¢ , ªã¤ ¤® ¢áâ ¢¨âì (¥á«¨ ¢¥â¢ì áãé¥áâ¢ã¥â, 2-© íâ ¯ ¯à®¯ã᪠¥¬) |
988,7 → 1005,6 |
ret |
endp |
; |
;output: |
; eax - à §¬¥à ¢ ¡ ©â å § ¨¬ ¥¬ë© ®¡ê¥ªâ®¬ v_obj |
align 4 |
1080,8 → 1096,9 |
ret |
endp |
;¯à¥ªà â¨âì ᮧ¤ ¨¥ ®¡ê¥ªâ |
align 4 |
but_5: |
but_stop: |
cmp byte[calc],0 |
je @f |
call draw_object |
1131,6 → 1148,9 |
stdcall dword[img_decode], dword[open_file_img],ebx,0 |
or eax,eax |
jz .end_0 ;¥á«¨ àãè¥ ä®à¬ â ä ©« |
mov ebx,[eax+4] ;+4 = image width |
cmp ebx,[eax+8] ;+8 = image height |
jne .err_s0 |
mov ebx,eax |
;¯à¥®¡à §ã¥¬ ¨§®¡à ¦¥¨¥ ª ä®à¬ âã rgb |
stdcall dword[img_to_rgb2], ebx,dword[open_file_img] |
1139,11 → 1159,11 |
cmp buf2d_data,0 |
jne @f |
m2m buf2d_w,dword[ebx+4] ;+4 = image width |
m2m buf2d_h,dword[ebx+8] ;+8 = image heihht |
m2m buf2d_h,dword[ebx+8] ;+8 = image height |
stdcall [buf2d_create_f_img], edi,[open_file_img] |
jmp .end_1 |
@@: |
mov ecx,dword[ebx+8] |
mov ecx,[ebx+8] |
stdcall [buf2d_resize], edi, [ebx+4],ecx,1 ;¨§¬¥ï¥¬ à §¬¥àë ¡ãä¥à |
imul ecx,[ebx+4] |
lea ecx,[ecx+ecx*2] |
1151,8 → 1171,11 |
mov esi,[open_file_img] |
cld |
rep movsb ;copy image |
jmp .end_1 |
.err_s0: ;®è¨¡ª , ¨§®¡à ¦¥¨¥ ¤«ï ¯à¥®¡à §®¢ ¨ï ¥ ¯®¤å®¤¨â (¥ ª¢ ¤à ⮥) |
mov ebx,eax |
notify_window_run txt_img_not_square |
.end_1: |
;㤠«ï¥¬ ¢à¥¬¥ë© ¡ãä¥à ¢ ebx |
stdcall dword[img_destroy], ebx |
.end_0: |
1199,6 → 1222,8 |
db ' ªàëâì',0 |
db 0 |
txt_img_not_square db '"¨¬ ¨¥',13,10,'âªàë¢ ¥¬®¥ ¨§®¡à ¦¥¨¥ ¥ ª¢ ¤à ⮥" -tW',0 |
;¤ ë¥ ¤«ï ¤¨ «®£ ®âªàëâ¨ï ä ©«®¢ |
align 4 |
OpenDialog_data: |
1244,29 → 1269,40 |
head_f_i: |
head_f_l db '¨á⥬ ï ®è¨¡ª ',0 |
system_dir_0 db '/sys/lib/' |
lib_name_0 db 'proc_lib.obj',0 |
err_message_found_lib_0 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'proc_lib.obj',39,0 |
err_message_import_0 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'proc_lib.obj',39,0 |
system_dir_1 db '/sys/lib/' |
lib_name_1 db 'libimg.obj',0 |
err_message_found_lib_1 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'libimg.obj',39,0 |
err_message_import_1 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'libimg.obj',39,0 |
system_dir_2 db '/sys/lib/' |
lib_name_2 db 'buf2d.obj',0 |
err_msg_found_lib_2 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'buf2d.obj',39,0 |
err_msg_import_2 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'buf2d',39,0 |
system_dir_3 db '/sys/lib/' |
lib_name_3 db 'msgbox.obj',0 |
err_msg_found_lib_3 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'msgbox.obj',39,0 |
err_msg_import_3 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'msgbox',39,0 |
align 4 |
head_f_i: |
if lang eq ru |
head_f_l db '"¨á⥬ ï ®è¨¡ª ',0 |
err_message_found_lib_0 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'proc_lib.obj',39,'" -tE',0 |
err_message_import_0 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'proc_lib.obj',39,'" -tE',0 |
err_message_found_lib_1 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'libimg.obj',39,'" -tE',0 |
err_message_import_1 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'libimg.obj',39,'" -tE',0 |
err_msg_found_lib_2 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'buf2d.obj',39,'" -tE',0 |
err_msg_import_2 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'buf2d',39,'" -tE',0 |
err_msg_found_lib_3 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'msgbox.obj',39,'" -tE',0 |
err_msg_import_3 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'msgbox',39,'" -tE',0 |
else |
head_f_l db '"System error',0 |
err_message_found_lib_0 db 'Sorry I cannot found library ',39,'proc_lib.obj',39,'" -tE',0 |
err_message_import_0 db 'Error on load import library ',39,'proc_lib.obj',39,'" -tE',0 |
err_message_found_lib_1 db 'Sorry I cannot found library ',39,'libimg.obj',39,'" -tE',0 |
err_message_import_1 db 'Error on load import library ',39,'libimg.obj',39,'" -tE',0 |
err_msg_found_lib_2 db 'Sorry I cannot found library ',39,'buf2d.obj',39,'" -tE',0 |
err_msg_import_2 db 'Error on load import library ',39,'buf2d',39,'" -tE',0 |
err_msg_found_lib_3 db 'Sorry I cannot found library ',39,'msgbox.obj',39,'" -tE',0 |
err_msg_import_3 db 'Error on load import library ',39,'msgbox',39,'" -tE',0 |
end if |
align 4 |
l_libs_start: |
lib_0 l_libs lib_name_0, sys_path, file_name, system_dir_0,\ |
err_message_found_lib_0, head_f_l, proclib_import,err_message_import_0, head_f_i |
1419,7 → 1455,7 |
; amb_reinit db 'mb_reinit',0 |
; amb_setfunctions db 'mb_setfunctions',0 |
mouse_dd dd 0x0 |
mouse_dd dd 0 |
sc system_colors |
last_time dd 0 |
1444,6 → 1480,7 |
.color: dd 0 ;+16 color |
db 32 ;+20 bit in pixel |
;⥪áâãà 1 (¢¥àåïï) |
align 4 |
buf_i0: dd 0 |
dw 5 ;+4 left |
1453,6 → 1490,7 |
.color: dd 0 ;+16 color |
db 24 ;+20 bit in pixel |
;⥪áâãà 2 |
align 4 |
buf_i1: dd 0 |
dw 105 ;+4 left |
1462,6 → 1500,7 |
.color: dd 0 ;+16 color |
db 24 ;+20 bit in pixel |
;⥪áâãà 3 |
align 4 |
buf_i2: dd 0 |
dw 205 ;+4 left |
1471,6 → 1510,10 |
.color: dd 0 ;+16 color |
db 24 ;+20 bit in pixel |
; «£®à¨â¬ ᮧ¤ ¨ï ¬®¤¥«¨ ¨á¯®«ì§ã¥â 3 á¥ç¥¨ï: |
; ¯à¥¤ë¤ã饥, ⥪ã饥, ¯®á«¥¤ãî饥 (íâ® ¥®¡å®¤¨¬® ¤«ï ®âᥨ¢ ¨ï ¢®ªá¥«¥© ¢ãâਠ®¡ê¥ªâ ) |
;¯à¥¤ë¤ã饥 á¥ç¥¨¥ |
align 4 |
buf_npl_p: dd 0 |
dw 0 ;+4 left |
1480,6 → 1523,7 |
.color: dd 0 ;+16 color |
db 24 ;+20 bit in pixel |
;⥪ã饥 á¥ç¥¨¥ |
align 4 |
buf_npl: dd 0 |
dw 5 ;+4 left |
1489,6 → 1533,7 |
.color: dd 0 ;+16 color |
db 24 ;+20 bit in pixel |
;¯®á«¥¤ãî饥 á¥ç¥¨¥ |
align 4 |
buf_npl_n: dd 0 |
dw 0 ;+4 left |
/programs/media/voxel_editor/utilites/vox_mover.asm |
---|
10,9 → 10,14 |
include '../trunk/vox_draw.inc' |
include '../trunk/vox_rotate.inc' |
include '../trunk/str.inc' |
include 'lang.inc' |
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load |
caption db 'Voxel mover 22.03.18',0 ;¯®¤¯¨áì ®ª |
if lang eq ru |
caption db '¥à¥¬¥é¥¨¥ ¢®ªá¥«¥© 04.05.20',0 ;¯®¤¯¨áì ®ª |
else |
caption db 'Voxel mover 04.05.20',0 |
end if |
run_file_70 FileInfoBlock |
518,80 → 523,98 |
stdcall but_new_file, [open_file_vox] |
call draw_objects |
call draw_pok |
jmp still |
@@: |
cmp ah,4 |
jne @f |
call but_open_file |
jmp still |
@@: |
cmp ah,5 |
jne @f |
call but_save_file |
jmp still |
@@: |
cmp ah,6 |
jne @f |
call but_zoom_p |
jmp still |
@@: |
cmp ah,7 |
jne @f |
call but_zoom_m |
jmp still |
@@: |
cmp ah,8 |
jne @f |
call but_3 |
jmp still |
@@: |
cmp ah,9 |
jne @f |
call but_4 |
jmp still |
@@: |
cmp ah,10 |
jne @f |
call but_plane_inc |
jmp still |
@@: |
cmp ah,11 |
jne @f |
call but_plane_dec |
jmp still |
@@: |
cmp ah,12 |
jne @f |
call but_light |
jmp still |
@@: |
cmp ah,13 |
jne @f |
call but_rend_2_2 |
jmp still |
@@: |
cmp ah,14 |
jne @f |
call but_move |
jmp still |
@@: |
cmp ah,15 |
jne @f |
dec dword[mov_x] |
call draw_pok |
jmp still |
@@: |
cmp ah,16 |
jne @f |
inc dword[mov_x] |
call draw_pok |
jmp still |
@@: |
cmp ah,17 |
jne @f |
dec dword[mov_y] |
call draw_pok |
jmp still |
@@: |
cmp ah,18 |
jne @f |
inc dword[mov_y] |
call draw_pok |
jmp still |
@@: |
cmp ah,19 |
jne @f |
dec dword[mov_z] |
call draw_pok |
jmp still |
@@: |
cmp ah,20 |
jne @f |
inc dword[mov_z] |
call draw_pok |
jmp still |
@@: |
cmp ah,1 |
jne still |
633,8 → 656,8 |
align 4 |
but_open_file: |
copy_path open_dialog_name,communication_area_default_path,file_name,0 |
pushad |
copy_path open_dialog_name,communication_area_default_path,file_name,0 |
mov [OpenDialog_data.type],0 |
stdcall [OpenDialog_Start],OpenDialog_data |
cmp [OpenDialog_data.status],2 |
676,8 → 699,8 |
align 4 |
but_save_file: |
copy_path open_dialog_name,communication_area_default_path,file_name,0 |
pushad |
copy_path open_dialog_name,communication_area_default_path,file_name,0 |
mov [OpenDialog_data.type],1 |
stdcall [OpenDialog_Start],OpenDialog_data |
cmp [OpenDialog_data.status],2 |
1133,6 → 1156,7 |
dd 1 shl 31,1 shl 30,1 shl 30,1 shl 30,1 shl 31 |
rd 999 ;32*32-25 |
if lang eq ru |
txt_zoom db ' áèâ ¡:',0 |
txt_curor: db 'ãàá®à: ' |
.size: rb 10 |
1139,6 → 1163,14 |
txt_n_plane db '¥ç¥¨¥:',0 |
txt_color db '¢¥â:',0 |
txt_mov_offs: db '¬¥é¥¨¥: ' |
else |
txt_zoom db 'Scale:',0 |
txt_curor: db 'Cursor: ' |
.size: rb 10 |
txt_n_plane db 'Section:',0 |
txt_color db 'Color:',0 |
txt_mov_offs: db 'Offset: ' |
end if |
.size: rb 30 |
txt_mull db '*',0 |
txt_space db ' ',0 |
1292,30 → 1324,39 |
db 0 |
head_f_i: |
head_f_l db '¨á⥬ ï ®è¨¡ª ',0 |
system_dir_0 db '/sys/lib/' |
lib_name_0 db 'proc_lib.obj',0 |
err_message_found_lib_0 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'proc_lib.obj',39,0 |
err_message_import_0 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'proc_lib.obj',39,0 |
system_dir_1 db '/sys/lib/' |
lib_name_1 db 'libimg.obj',0 |
err_message_found_lib_1 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'libimg.obj',39,0 |
err_message_import_1 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'libimg.obj',39,0 |
system_dir_2 db '/sys/lib/' |
lib_name_2 db 'buf2d.obj',0 |
err_msg_found_lib_2 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'buf2d.obj',39,0 |
err_msg_import_2 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'buf2d',39,0 |
system_dir_3 db '/sys/lib/' |
lib_name_3 db 'libini.obj',0 |
err_msg_found_lib_3 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'libini.obj',39,0 |
err_msg_import_3 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'libini',39,0 |
align 4 |
head_f_i: |
if lang eq ru |
head_f_l db '"¨á⥬ ï ®è¨¡ª ',0 |
err_message_found_lib_0 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'proc_lib.obj',39,'" -tE',0 |
err_message_import_0 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'proc_lib.obj',39,'" -tE',0 |
err_message_found_lib_1 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'libimg.obj',39,'" -tE',0 |
err_message_import_1 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'libimg.obj',39,'" -tE',0 |
err_msg_found_lib_2 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'buf2d.obj',39,'" -tE',0 |
err_msg_import_2 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'buf2d',39,'" -tE',0 |
err_msg_found_lib_3 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'libini.obj',39,'" -tE',0 |
err_msg_import_3 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'libini',39,'" -tE',0 |
else |
head_f_l db '"System error',0 |
err_message_found_lib_0 db 'Sorry I cannot found library ',39,'proc_lib.obj',39,'" -tE',0 |
err_message_import_0 db 'Error on load import library ',39,'proc_lib.obj',39,'" -tE',0 |
err_message_found_lib_1 db 'Sorry I cannot found library ',39,'libimg.obj',39,'" -tE',0 |
err_message_import_1 db 'Error on load import library ',39,'libimg.obj',39,'" -tE',0 |
err_msg_found_lib_2 db 'Sorry I cannot found library ',39,'buf2d.obj',39,'" -tE',0 |
err_msg_import_2 db 'Error on load import library ',39,'buf2d',39,'" -tE',0 |
err_msg_found_lib_3 db 'Sorry I cannot found library ',39,'libini.obj',39,'" -tE',0 |
err_msg_import_3 db 'Error on load import library ',39,'libini',39,'" -tE',0 |
end if |
l_libs_start: |
lib0 l_libs lib_name_0, sys_path, file_name, system_dir_0,\ |
err_message_found_lib_0, head_f_l, proclib_import,err_message_import_0, head_f_i |
1469,7 → 1510,7 |
aini_get_int db 'ini_get_int',0 |
aini_get_color db 'ini_get_color',0 |
mouse_dd dd 0x0 |
mouse_dd dd 0 |
sc system_colors |
align 16 |
/programs/media/voxel_editor/utilites/vox_tgl.asm |
---|
10,9 → 10,14 |
include '../../../../programs/develop/libraries/TinyGL/asm_fork/opengl_const.inc' |
include 'vox_3d.inc' |
include '../trunk/str.inc' |
include 'lang.inc' |
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load |
caption db 'Voxel viewer 22.03.18',0 ;¯®¤¯¨áì ®ª |
if lang eq ru |
caption db 'à®á¬®âà ¢®ªá¥«¥© 04.05.20',0 ;¯®¤¯¨áì ®ª |
else |
caption db 'Voxel viewer 04.05.20',0 |
end if |
3d_wnd_l equ 5 ;®âáâ㯠¤«ï tinygl ¡ãä¥à á«¥¢ |
3d_wnd_t equ 30 ;®âáâ㯠¤«ï tinygl ¡ãä¥à ᢥàåã |
355,42 → 360,52 |
cmp ah,3 |
jne @f |
call but_new_file |
jmp still |
@@: |
cmp ah,4 |
jne @f |
call but_open_file |
jmp still |
@@: |
cmp ah,5 |
jne @f |
call but_save_file |
jmp still |
@@: |
cmp ah,6 |
jne @f |
call but_zoom_p |
jmp still |
@@: |
cmp ah,7 |
jne @f |
call but_zoom_m |
jmp still |
@@: |
cmp ah,8 |
jne @f |
call but_3 |
call but_light |
jmp still |
@@: |
cmp ah,9 |
jne @f |
call but_4 |
jmp still |
@@: |
cmp ah,10 |
jne @f |
call but_5 |
jmp still |
@@: |
cmp ah,11 |
jne @f |
call but_6 |
call but_info |
jmp still |
@@: |
cmp ah,12 |
jne @f |
call but_draw_cadr |
jmp still |
@@: |
cmp ah,1 |
jne still |
417,8 → 432,8 |
align 4 |
but_open_file: |
copy_path open_dialog_name,communication_area_default_path,file_name,0 |
pushad |
copy_path open_dialog_name,communication_area_default_path,file_name,0 |
mov [OpenDialog_data.type],0 |
stdcall [OpenDialog_Start],OpenDialog_data |
cmp [OpenDialog_data.status],2 |
564,8 → 579,8 |
align 4 |
but_save_file: |
copy_path open_dialog_name,communication_area_default_path,file_name,0 |
pushad |
copy_path open_dialog_name,communication_area_default_path,file_name,0 |
mov [OpenDialog_data.type],1 |
stdcall [OpenDialog_Start],OpenDialog_data |
cmp [OpenDialog_data.status],2 |
618,7 → 633,7 |
endp |
align 4 |
proc but_3 uses eax ebx ecx edx |
proc but_light uses eax ebx ecx edx |
xor word[opt_light],1 |
cmp word[opt_light],0 |
je @f |
652,7 → 667,7 |
endp |
align 4 |
proc but_6 uses eax ebx ecx edx edi |
proc but_info uses eax ebx ecx edx edi |
;¢ëç¨á«¥¨¥ áâ â¨á⨪¨ ¯® ¢®ªá¥«ï¬ |
mov eax,[open_file_ogl] |
or eax,eax |
707,10 → 722,17 |
align 4 |
txt_stat_m1: |
if lang eq ru |
db 'â â¨á⨪ ',13,10,'®ªá¥«¥©: ' |
.v: rb 70 |
txt_stat_m2: |
db 13,10,'â®¡à ¦ ¥¬ëå £à ¥©: ' |
else |
db 'Statistics',13,10,'Voxels: ' |
.v: rb 70 |
txt_stat_m2: |
db 13,10,'Facets displayed: ' |
end if |
.v: rb 20 |
align 4 |
842,29 → 864,39 |
head_f_i: |
head_f_l db '¨á⥬ ï ®è¨¡ª ',0 |
system_dir_0 db '/sys/lib/' |
lib_name_0 db 'proc_lib.obj',0 |
err_message_found_lib_0 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'proc_lib.obj',39,0 |
err_message_import_0 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'proc_lib.obj',39,0 |
system_dir_1 db '/sys/lib/' |
lib_name_1 db 'libimg.obj',0 |
err_message_found_lib_1 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'libimg.obj',39,0 |
err_message_import_1 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'libimg.obj',39,0 |
system_dir_2 db '/sys/lib/' |
lib_name_2 db 'buf2d.obj',0 |
err_msg_found_lib_2 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'buf2d.obj',39,0 |
err_msg_import_2 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'buf2d',39,0 |
system_dir_3 db '/sys/lib/' |
lib_name_3 db 'tinygl.obj',0 |
err_msg_found_lib_3 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'tinygl.obj',39,0 |
err_msg_import_3 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'tinygl',39,0 |
align 4 |
head_f_i: |
if lang eq ru |
head_f_l db '"¨á⥬ ï ®è¨¡ª ',0 |
err_message_found_lib_0 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'proc_lib.obj',39,'" -tE',0 |
err_message_import_0 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'proc_lib.obj',39,'" -tE',0 |
err_message_found_lib_1 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'libimg.obj',39,'" -tE',0 |
err_message_import_1 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'libimg.obj',39,'" -tE',0 |
err_msg_found_lib_2 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'buf2d.obj',39,'" -tE',0 |
err_msg_import_2 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'buf2d',39,'" -tE',0 |
err_msg_found_lib_3 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'tinygl.obj',39,'" -tE',0 |
err_msg_import_3 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'tinygl',39,'" -tE',0 |
else |
head_f_l db '"System error',0 |
err_message_found_lib_0 db 'Sorry I cannot found library ',39,'proc_lib.obj',39,'" -tE',0 |
err_message_import_0 db 'Error on load import library ',39,'proc_lib.obj',39,'" -tE',0 |
err_message_found_lib_1 db 'Sorry I cannot found library ',39,'libimg.obj',39,'" -tE',0 |
err_message_import_1 db 'Error on load import library ',39,'libimg.obj',39,'" -tE',0 |
err_msg_found_lib_2 db 'Sorry I cannot found library ',39,'buf2d.obj',39,'" -tE',0 |
err_msg_import_2 db 'Error on load import library ',39,'buf2d',39,'" -tE',0 |
err_msg_found_lib_3 db 'Sorry I cannot found library ',39,'tinygl.obj',39,'" -tE',0 |
err_msg_import_3 db 'Error on load import library ',39,'tinygl',39,'" -tE',0 |
end if |
l_libs_start: |
lib_0 l_libs lib_name_0, sys_path, file_name, system_dir_0,\ |
err_message_found_lib_0, head_f_l, proclib_import,err_message_import_0, head_f_i |