/programs/media/voxel_editor/utilites/build_ru.bat |
---|
1,7 → 1,4 |
if not exist bin mkdir bin |
if not exist bin\toolbar.png @copy toolbar.png bin\toolbar.png |
if not exist bin\toolbar_m.png @copy toolbar_m.png bin\toolbar_m.png |
if not exist bin\toolbar_t.png @copy toolbar_t.png bin\toolbar_t.png |
if not exist bin\buf2d.obj @fasm.exe -m 16384 ..\..\..\develop\libraries\TinyGL\asm_fork\tinygl.asm bin\tinygl.obj |
@kpack bin\tinygl.obj |
@fasm.exe -m 16384 vox_creator.asm bin\vox_creator.kex |
/programs/media/voxel_editor/utilites/vox_creator.asm |
---|
1,7 → 1,7 |
use32 |
org 0x0 |
org 0 |
db 'MENUET01' ;¨¤¥â¨ä. ¨á¯®«ï¥¬®£® ä ©« ¢á¥£¤ 8 ¡ ©â |
dd 1,start,i_end,mem,stacktop,0,sys_path |
dd 1,start,i_end,mem,stacktop,openfile_path,sys_path |
include '../../../../programs/macros.inc' |
include '../../../../programs/proc32.inc' |
15,7 → 15,7 |
include '../trunk/vox_rotate.inc' |
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load |
caption db 'Voxel creator 19.02.16',0 ;¯®¤¯¨áì ®ª |
caption db 'Voxel creator 22.03.18',0 ;¯®¤¯¨áì ®ª |
BUF_STRUCT_SIZE equ 21 |
buf2d_data equ dword[edi] ;¤ ë¥ ¡ãä¥à ¨§®¡à ¦¥¨ï |
37,7 → 37,6 |
txt_f_size: db ' §¬¥à: ' |
.size: rb 16 |
fn_toolbar db 'toolbar.png',0 |
IMAGE_TOOLBAR_ICON_SIZE equ 16*16*3 |
image_data_toolbar dd 0 |
60,7 → 59,7 |
stdcall [buf2d_create], buf_0z |
stdcall [buf2d_vox_brush_create], buf_vox, vox_6_7_z |
load_image_file fn_toolbar, image_data_toolbar |
include_image_file 'toolbar.png', image_data_toolbar |
stdcall mem.Alloc,max_open_file_size |
mov dword[open_file_vox],eax |
69,6 → 68,11 |
mcall SF_SYSTEM_GET,SSF_TIME_COUNT |
mov [last_time],eax |
;¯à®¢¥àª ª®¬ ¤®© áâப¨ |
cmp dword[openfile_path],0 |
je @f |
call but_open_file_cmd_lin |
@@: |
align 4 |
red_win: |
548,9 → 552,16 |
mov [OpenDialog_data.type],0 |
stdcall [OpenDialog_Start],OpenDialog_data |
cmp [OpenDialog_data.status],2 |
je .end_open_file |
je @f |
;ª®¤ ¯à¨ 㤠箬 ®âªàë⨨ ¤¨ «®£ |
call but_open_file_cmd_lin |
@@: |
popad |
ret |
align 4 |
but_open_file_cmd_lin: |
pushad |
mov [run_file_70.Function], SSF_READ_FILE |
mov [run_file_70.Position], 0 |
mov [run_file_70.Flags], 0 |
/programs/media/voxel_editor/utilites/vox_mover.asm |
---|
1,7 → 1,7 |
use32 |
org 0x0 |
org 0 |
db 'MENUET01' ;¨¤¥â¨ä. ¨á¯®«ï¥¬®£® ä ©« ¢á¥£¤ 8 ¡ ©â |
dd 1, start, i_end, mem, stacktop, 0, sys_path |
dd 1, start, i_end, mem, stacktop, openfile_path, sys_path |
include '../../../../programs/macros.inc' |
include '../../../../programs/proc32.inc' |
12,7 → 12,7 |
include '../trunk/str.inc' |
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load |
caption db 'Voxel mover 19.02.16',0 ;¯®¤¯¨áì ®ª |
caption db 'Voxel mover 22.03.18',0 ;¯®¤¯¨áì ®ª |
run_file_70 FileInfoBlock |
117,7 → 117,7 |
stdcall [buf2d_vox_brush_create], buf_vox, vox_6_7_z |
load_image_file 'toolbar_m.png', image_data_toolbar |
include_image_file 'toolbar_m.png', image_data_toolbar |
stdcall mem.Alloc,[max_open_file_size] |
mov dword[open_file_vox],eax |
126,6 → 126,11 |
stdcall but_new_file, [open_file_vox] |
stdcall but_new_file, [moved_file_vox] |
;¯à®¢¥àª ª®¬ ¤®© áâப¨ |
cmp dword[openfile_path],0 |
je @f |
call but_open_file_cmd_lin |
@@: |
align 4 |
red_win: |
633,9 → 638,16 |
mov [OpenDialog_data.type],0 |
stdcall [OpenDialog_Start],OpenDialog_data |
cmp [OpenDialog_data.status],2 |
je .end_open_file |
je @f |
;ª®¤ ¯à¨ 㤠箬 ®âªàë⨨ ¤¨ «®£ |
call but_open_file_cmd_lin |
@@: |
popad |
ret |
align 4 |
but_open_file_cmd_lin: |
pushad |
mov [run_file_70.Function], SSF_READ_FILE |
mov [run_file_70.Position], 0 |
mov [run_file_70.Flags], 0 |
647,8 → 659,6 |
cmp ebx,0xffffffff |
je .end_open_file |
;add ebx,[open_file_vox] |
;mov byte[ebx],0 ; á«ãç © ¥á«¨ à ¥¥ ¡ë« ®âªàëâ ä ©« ¡®«ì襣® à §¬¥à ç¨á⨬ ª®¥æ ¡ãä¥à á ä ©«®¬ |
mcall SF_SET_CAPTION,1,openfile_path |
;--- |
/programs/media/voxel_editor/utilites/vox_tgl.asm |
---|
1,7 → 1,7 |
use32 |
org 0x0 |
org 0 |
db 'MENUET01' ;¨¤¥â¨ä. ¨á¯®«ï¥¬®£® ä ©« ¢á¥£¤ 8 ¡ ©â |
dd 1, start, i_end, mem, stacktop, 0, sys_path |
dd 1, start, i_end, mem, stacktop, openfile_path, sys_path |
include '../../../../programs/macros.inc' |
include '../../../../programs/proc32.inc' |
12,7 → 12,7 |
include '../trunk/str.inc' |
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load |
caption db 'Voxel viewer 18.04.17',0 ;¯®¤¯¨áì ®ª |
caption db 'Voxel viewer 22.03.18',0 ;¯®¤¯¨áì ®ª |
3d_wnd_l equ 5 ;®âáâ㯠¤«ï tinygl ¡ãä¥à á«¥¢ |
3d_wnd_t equ 30 ;®âáâ㯠¤«ï tinygl ¡ãä¥à ᢥàåã |
40,7 → 40,7 |
stdcall [buf2d_create], buf_0 ;ᮧ¤ ¨¥ ¡ãä¥à |
load_image_file 'toolbar_t.png', image_data_toolbar,,,6 ;6 - for gray icons |
include_image_file 'toolbar_t.png', image_data_toolbar,,,6 ;6 - for gray icons |
mov eax,[image_data_toolbar] |
add eax,IMAGE_TOOLBAR_SIZE |
stdcall img_to_gray, [image_data_toolbar],eax,(IMAGE_TOOLBAR_SIZE)/3 |
55,8 → 55,12 |
stdcall [glShadeModel], GL_SMOOTH |
call but_new_file |
;¯à®¢¥àª ª®¬ ¤®© áâப¨ |
cmp dword[openfile_path],0 |
je @f |
call but_open_file_cmd_lin |
@@: |
align 4 |
red_win: |
call draw_window |
418,9 → 422,16 |
mov [OpenDialog_data.type],0 |
stdcall [OpenDialog_Start],OpenDialog_data |
cmp [OpenDialog_data.status],2 |
je .end_open_file |
je @f |
;ª®¤ ¯à¨ 㤠箬 ®âªàë⨨ ¤¨ «®£ |
call but_open_file_cmd_lin |
@@: |
popad |
ret |
align 4 |
but_open_file_cmd_lin: |
pushad |
mov [run_file_70.Function], SSF_GET_INFO |
mov [run_file_70.Position], 0 |
mov [run_file_70.Flags], 0 |
430,11 → 441,6 |
mov dword[run_file_70.FileName], openfile_path |
mcall SF_FILE,run_file_70 |
;mov eax,dword[open_b+32] |
;mov edi,txt_buf |
;call conv_int_to_str |
;notify_window_run txt_buf |
mov ecx,dword[open_b+32] ;+32 qword: à §¬¥à ä ©« ¢ ¡ ©â å |
stdcall mem.ReAlloc,[open_file_data],ecx |
mov [open_file_data],eax |