add compare function to determine if points are seen clockwise

This commit is contained in:
util1 2019-07-25 15:32:36 +02:00
parent 46baf3d648
commit 04eb7747d9
8 changed files with 192 additions and 166 deletions

BIN
1v13D.g1a

Binary file not shown.

View File

@ -354,165 +354,165 @@ LOAD /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a
0x0000000000301490 _FE_get_fps_current
0x00000000003014b0 _FE_get_fps_min
0x00000000003014d0 _FE_get_fps_max
.text 0x00000000003014f0 0x0 build-fx/src/FxEngine/face.o
.text 0x00000000003014f0 0xb4 build-fx/src/FxEngine/zbuffer.o
0x00000000003014f0 _FE_zbuffer_clear
0x0000000000301558 _FE_zbuffer_set_dist
.text 0x00000000003015a4 0x0 build-fx/src/main.o
.text.startup 0x00000000003015a4 0x7c build-fx/src/main.o
0x00000000003015a4 _main
.text 0x0000000000301620 0x74 build-fx/src/controls.o
0x0000000000301620 _init_controls
0x0000000000301630 _reload_fps_displaying
0x0000000000301654 _display_fps
.text 0x0000000000301694 0x150 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(cpg.c.o)
0x00000000003017d8 _clock_freq
.text 0x00000000003017e4 0x2c8 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(keysc.c.o)
0x0000000000301988 _pollevent
0x0000000000301a74 _waitevent
.text 0x0000000000301aac 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(hardware.c.o)
.text 0x0000000000301aac 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(syscalls.S.o)
.text 0x0000000000301aac 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(start.c.o)
.text 0x0000000000301aac 0x1f4 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(mmu.c.o)
0x0000000000301aac _tlb_addr
0x0000000000301ac0 _tlb_data
0x0000000000301ad4 _tlb_mapped_memory
0x0000000000301ba8 _utlb_addr
0x0000000000301bb8 _utlb_data
0x0000000000301bc8 _utlb_mapped_memory
.text 0x0000000000301ca0 0x56c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(tmu.c.o)
0x0000000000301fc0 _timer_setup
0x0000000000302050 _timer_delay
0x00000000003020b0 _timer_start
0x00000000003020e4 _timer_reload
0x0000000000302104 _timer_pause
0x0000000000302138 _timer_stop
0x0000000000302194 _timer_timeout
0x00000000003021a0 _timer_address
0x00000000003021dc _timer_clear
.text 0x000000000030220c 0x9c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(topti.c.o)
0x000000000030220c _dsize
.text 0x00000000003022a8 0x50 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(dpixel.c.o)
0x00000000003022a8 _dpixel
.text 0x00000000003022f8 0x54 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(dimage.c.o)
0x00000000003022f8 _dimage
0x000000000030232c _dsubimage
.text 0x000000000030234c 0x24 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(dupdate.c.o)
0x000000000030234c _dupdate
0x0000000000302364 _dupdate_noint
.text 0x0000000000302370 0x4c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(dclear.c.o)
0x0000000000302370 _dclear
.text 0x00000000003023bc 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(topti.c.o)
.text 0x00000000003023bc 0xc00 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(stdio.c.o)
0x0000000000302ce4 _kprint_opt
0x0000000000302e1c _kprint
0x0000000000302ef4 _kvsprint
0x0000000000302f3c _sprintf
0x0000000000302f64 _vsprintf
0x0000000000302f84 _snprintf
0x0000000000302fa4 _vsnprintf
.text 0x0000000000302fbc 0xdc /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(memory.c.o)
0x0000000000302fbc _memcpy
0x0000000000303076 __memmove
0x000000000030307a __memcmp
0x000000000030307e _memset
.text 0x0000000000303098 0x1d8 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(t6k11.c.o)
0x0000000000303130 _t6k11_display
0x0000000000303204 _t6k11_contrast
0x0000000000303230 _t6k11_backlight
.text 0x0000000000303270 0x1c8 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(getkey.c.o)
0x0000000000303270 _getkey_opt
0x00000000003033f0 _getkey
0x00000000003033fc _getkey_repeat
.text 0x0000000000303438 0x124 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(iokbd.c.o)
0x0000000000303444 _iokbd_row
0x000000000030352c _iokbd_scan
.text 0x000000000030355c 0x170 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(setup.c.o)
0x0000000000303610 _gint_install
0x00000000003036b4 _gint_unload
.text 0x00000000003036cc 0x2c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(vbr.s.o)
0x00000000003036cc _gint_setvbr
.text 0x00000000003036f8 0x78 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(gint.c.o)
0x00000000003036f8 _gint_intlevel
0x000000000030374c _gint_inthandler
.text 0x0000000000303770 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(inth.S.o)
.text 0x0000000000303770 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(exch.S.o)
.text 0x0000000000303770 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(inth.s.o)
.text 0x0000000000303770 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(topti-asm.s.o)
.text 0x0000000000303770 0x3b0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(bopti.c.o)
0x0000000000303770 _bopti_grid
0x00000000003038c6 _bopti_render
0x00000000003039cc _bopti_render_clip
0x0000000000303ad4 _bopti_render_noclip
.text 0x0000000000303b20 0x9c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(masks.c.o)
0x0000000000303b20 _masks
.text 0x0000000000303bbc 0x60 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(bopti-asm.s.o)
0x0000000000303bbc _bopti_asm_mono
0x0000000000303be2 _bopti_asm_mono_alpha
0x0000000000303c14 _bopti_asm_gray
0x0000000000303c18 _bopti_asm_gray_alpha
.text 0x0000000000303c1c 0x78 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_movmem.o)
0x0000000000303c1c ___movstr
0x0000000000303c1c ___movmem
0x0000000000303c50 ___movmemSI64
0x0000000000303c50 ___movstrSI64
0x0000000000303c54 ___movstrSI60
0x0000000000303c54 ___movmemSI60
0x0000000000303c58 ___movmemSI56
0x0000000000303c58 ___movstrSI56
0x0000000000303c5c ___movstrSI52
0x0000000000303c5c ___movmemSI52
0x0000000000303c60 ___movstrSI48
0x0000000000303c60 ___movmemSI48
0x0000000000303c64 ___movstrSI44
0x0000000000303c64 ___movmemSI44
0x0000000000303c68 ___movstrSI40
0x0000000000303c68 ___movmemSI40
0x0000000000303c6c ___movstrSI36
0x0000000000303c6c ___movmemSI36
0x0000000000303c70 ___movmemSI32
0x0000000000303c70 ___movstrSI32
0x0000000000303c74 ___movmemSI28
0x0000000000303c74 ___movstrSI28
0x0000000000303c78 ___movstrSI24
0x0000000000303c78 ___movmemSI24
0x0000000000303c7c ___movmemSI20
0x0000000000303c7c ___movstrSI20
0x0000000000303c80 ___movstrSI16
0x0000000000303c80 ___movmemSI16
0x0000000000303c84 ___movmemSI12
0x0000000000303c84 ___movstrSI12
0x0000000000303c88 ___movmemSI8
0x0000000000303c88 ___movstrSI8
0x0000000000303c8c ___movmemSI4
0x0000000000303c8c ___movstrSI4
.text 0x0000000000303c94 0xa0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_sdivsi3.o)
0x0000000000303c94 ___sdivsi3
.text 0x0000000000303d34 0x6c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_udivsi3.o)
0x0000000000303d56 ___udivsi3
.text 0x0000000000303da0 0x1f0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_udivdi3.o)
0x0000000000303da0 ___udivdi3
.text 0x0000000000303f90 0x348 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_addsub_df.o)
0x0000000000304234 ___adddf3
0x0000000000304284 ___subdf3
.text 0x00000000003042d8 0x208 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_mul_df.o)
0x00000000003042d8 ___muldf3
.text 0x00000000003044e0 0x130 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_div_df.o)
0x00000000003044e0 ___divdf3
.text 0x0000000000304610 0x58 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_gt_df.o)
0x0000000000304610 ___gtdf2
.text 0x0000000000304668 0x58 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_ge_df.o)
0x0000000000304668 ___gedf2
.text 0x00000000003046c0 0x58 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_lt_df.o)
0x00000000003046c0 ___ltdf2
.text 0x0000000000304718 0x58 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_le_df.o)
0x0000000000304718 ___ledf2
.text 0x0000000000304770 0x98 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_si_to_df.o)
0x0000000000304770 ___floatsidf
.text 0x0000000000304808 0x8c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_df_to_si.o)
0x0000000000304808 ___fixdfsi
.text 0x0000000000304894 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_thenan_df.o)
*fill* 0x0000000000304894 0x4
.text 0x00000000003014f0 0x4 build-fx/src/FxEngine/face.o
0x00000000003014f0 _FE_draw_face
.text 0x00000000003014f4 0xb4 build-fx/src/FxEngine/zbuffer.o
0x00000000003014f4 _FE_zbuffer_clear
0x000000000030155c _FE_zbuffer_set_dist
.text 0x00000000003015a8 0x0 build-fx/src/main.o
.text.startup 0x00000000003015a8 0x7c build-fx/src/main.o
0x00000000003015a8 _main
.text 0x0000000000301624 0x74 build-fx/src/controls.o
0x0000000000301624 _init_controls
0x0000000000301634 _reload_fps_displaying
0x0000000000301658 _display_fps
.text 0x0000000000301698 0x150 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(cpg.c.o)
0x00000000003017dc _clock_freq
.text 0x00000000003017e8 0x2c8 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(keysc.c.o)
0x000000000030198c _pollevent
0x0000000000301a78 _waitevent
.text 0x0000000000301ab0 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(hardware.c.o)
.text 0x0000000000301ab0 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(syscalls.S.o)
.text 0x0000000000301ab0 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(start.c.o)
.text 0x0000000000301ab0 0x1f4 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(mmu.c.o)
0x0000000000301ab0 _tlb_addr
0x0000000000301ac4 _tlb_data
0x0000000000301ad8 _tlb_mapped_memory
0x0000000000301bac _utlb_addr
0x0000000000301bbc _utlb_data
0x0000000000301bcc _utlb_mapped_memory
.text 0x0000000000301ca4 0x56c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(tmu.c.o)
0x0000000000301fc4 _timer_setup
0x0000000000302054 _timer_delay
0x00000000003020b4 _timer_start
0x00000000003020e8 _timer_reload
0x0000000000302108 _timer_pause
0x000000000030213c _timer_stop
0x0000000000302198 _timer_timeout
0x00000000003021a4 _timer_address
0x00000000003021e0 _timer_clear
.text 0x0000000000302210 0x9c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(topti.c.o)
0x0000000000302210 _dsize
.text 0x00000000003022ac 0x50 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(dpixel.c.o)
0x00000000003022ac _dpixel
.text 0x00000000003022fc 0x54 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(dimage.c.o)
0x00000000003022fc _dimage
0x0000000000302330 _dsubimage
.text 0x0000000000302350 0x24 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(dupdate.c.o)
0x0000000000302350 _dupdate
0x0000000000302368 _dupdate_noint
.text 0x0000000000302374 0x4c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(dclear.c.o)
0x0000000000302374 _dclear
.text 0x00000000003023c0 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(topti.c.o)
.text 0x00000000003023c0 0xc00 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(stdio.c.o)
0x0000000000302ce8 _kprint_opt
0x0000000000302e20 _kprint
0x0000000000302ef8 _kvsprint
0x0000000000302f40 _sprintf
0x0000000000302f68 _vsprintf
0x0000000000302f88 _snprintf
0x0000000000302fa8 _vsnprintf
.text 0x0000000000302fc0 0xdc /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(memory.c.o)
0x0000000000302fc0 _memcpy
0x000000000030307a __memmove
0x000000000030307e __memcmp
0x0000000000303082 _memset
.text 0x000000000030309c 0x1d8 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(t6k11.c.o)
0x0000000000303134 _t6k11_display
0x0000000000303208 _t6k11_contrast
0x0000000000303234 _t6k11_backlight
.text 0x0000000000303274 0x1c8 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(getkey.c.o)
0x0000000000303274 _getkey_opt
0x00000000003033f4 _getkey
0x0000000000303400 _getkey_repeat
.text 0x000000000030343c 0x124 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(iokbd.c.o)
0x0000000000303448 _iokbd_row
0x0000000000303530 _iokbd_scan
.text 0x0000000000303560 0x170 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(setup.c.o)
0x0000000000303614 _gint_install
0x00000000003036b8 _gint_unload
.text 0x00000000003036d0 0x2c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(vbr.s.o)
0x00000000003036d0 _gint_setvbr
.text 0x00000000003036fc 0x78 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(gint.c.o)
0x00000000003036fc _gint_intlevel
0x0000000000303750 _gint_inthandler
.text 0x0000000000303774 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(inth.S.o)
.text 0x0000000000303774 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(exch.S.o)
.text 0x0000000000303774 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(inth.s.o)
.text 0x0000000000303774 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(topti-asm.s.o)
.text 0x0000000000303774 0x3b0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(bopti.c.o)
0x0000000000303774 _bopti_grid
0x00000000003038ca _bopti_render
0x00000000003039d0 _bopti_render_clip
0x0000000000303ad8 _bopti_render_noclip
.text 0x0000000000303b24 0x9c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(masks.c.o)
0x0000000000303b24 _masks
.text 0x0000000000303bc0 0x60 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(bopti-asm.s.o)
0x0000000000303bc0 _bopti_asm_mono
0x0000000000303be6 _bopti_asm_mono_alpha
0x0000000000303c18 _bopti_asm_gray
0x0000000000303c1c _bopti_asm_gray_alpha
.text 0x0000000000303c20 0x78 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_movmem.o)
0x0000000000303c20 ___movstr
0x0000000000303c20 ___movmem
0x0000000000303c54 ___movmemSI64
0x0000000000303c54 ___movstrSI64
0x0000000000303c58 ___movstrSI60
0x0000000000303c58 ___movmemSI60
0x0000000000303c5c ___movmemSI56
0x0000000000303c5c ___movstrSI56
0x0000000000303c60 ___movstrSI52
0x0000000000303c60 ___movmemSI52
0x0000000000303c64 ___movstrSI48
0x0000000000303c64 ___movmemSI48
0x0000000000303c68 ___movstrSI44
0x0000000000303c68 ___movmemSI44
0x0000000000303c6c ___movstrSI40
0x0000000000303c6c ___movmemSI40
0x0000000000303c70 ___movstrSI36
0x0000000000303c70 ___movmemSI36
0x0000000000303c74 ___movmemSI32
0x0000000000303c74 ___movstrSI32
0x0000000000303c78 ___movmemSI28
0x0000000000303c78 ___movstrSI28
0x0000000000303c7c ___movstrSI24
0x0000000000303c7c ___movmemSI24
0x0000000000303c80 ___movmemSI20
0x0000000000303c80 ___movstrSI20
0x0000000000303c84 ___movstrSI16
0x0000000000303c84 ___movmemSI16
0x0000000000303c88 ___movmemSI12
0x0000000000303c88 ___movstrSI12
0x0000000000303c8c ___movmemSI8
0x0000000000303c8c ___movstrSI8
0x0000000000303c90 ___movmemSI4
0x0000000000303c90 ___movstrSI4
.text 0x0000000000303c98 0xa0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_sdivsi3.o)
0x0000000000303c98 ___sdivsi3
.text 0x0000000000303d38 0x6c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_udivsi3.o)
0x0000000000303d5a ___udivsi3
.text 0x0000000000303da4 0x1f0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_udivdi3.o)
0x0000000000303da4 ___udivdi3
.text 0x0000000000303f94 0x348 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_addsub_df.o)
0x0000000000304238 ___adddf3
0x0000000000304288 ___subdf3
.text 0x00000000003042dc 0x208 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_mul_df.o)
0x00000000003042dc ___muldf3
.text 0x00000000003044e4 0x130 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_div_df.o)
0x00000000003044e4 ___divdf3
.text 0x0000000000304614 0x58 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_gt_df.o)
0x0000000000304614 ___gtdf2
.text 0x000000000030466c 0x58 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_ge_df.o)
0x000000000030466c ___gedf2
.text 0x00000000003046c4 0x58 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_lt_df.o)
0x00000000003046c4 ___ltdf2
.text 0x000000000030471c 0x58 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_le_df.o)
0x000000000030471c ___ledf2
.text 0x0000000000304774 0x98 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_si_to_df.o)
0x0000000000304774 ___floatsidf
.text 0x000000000030480c 0x8c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_df_to_si.o)
0x000000000030480c ___fixdfsi
.text 0x0000000000304898 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_thenan_df.o)
.text 0x0000000000304898 0x60 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_udiv_qrnnd_16.o)
0x0000000000304898 ___udiv_qrnnd_16
.text 0x00000000003048f8 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_clz.o)

Binary file not shown.

Binary file not shown.

View File

@ -1,3 +1,10 @@
build-fx/src/FxEngine/face.o: src/FxEngine/face.c src/FxEngine/face.h
build-fx/src/FxEngine/face.o: src/FxEngine/face.c src/FxEngine/face.h \
src/FxEngine/coord.h src/FxEngine/FxEngine.h src/FxEngine/zbuffer.h
src/FxEngine/face.h:
src/FxEngine/coord.h:
src/FxEngine/FxEngine.h:
src/FxEngine/zbuffer.h:

Binary file not shown.

View File

@ -1,10 +1,29 @@
#include "face.h"
static bool compare(FE_face const * face)
{
const int dx_1=face->s2->translated.x-face->s1->translated.x;
const int dx_2=face->s3->translated.x-face->s1->translated.x;
const int dy_1=face->s2->translated.y-face->s1->translated.y;
const int dy_2=face->s3->translated.y-face->s1->translated.y;
double coef1,coef2;
if (dx_1==0) coef1=10000*dy_1;
else coef1=dy_1/dx_1;
if (dx_2==0) coef2=10000*dy_2;
else coef2=dy_2/dx_2;
return (coef1<coef2);
}
void FE_draw_face(FE_face const * face)
{
if (face->s1->translated.x==face->s2->translated.x || face->s1->translated.x==face->s3->translated.x || face->s2->translated.x==face->s3->translated.x)
return;
if (face->s1->translated.y==face->s2->translated.y || face->s1->translated.y==face->s3->translated.y || face->s2->translated.y==face->s3->translated.y)
return;
if (face->s1->translated.x==face->s2->translated.x && face->s1->translated.x==face->s3->translated.x)
return;
if (face->s1->translated.y==face->s2->translated.y && face->s1->translated.y==face->s3->translated.y)
return;
if (compare(face)!=face->visible)
return;
}

View File

@ -7,7 +7,7 @@
typedef struct FE_face FE_face;
struct FE_face
{
FE_point* s1,s2,s3;
FE_point *s1,*s2,*s3;
bool visible; // true => clockwised
int texturenum;
};