Subversion Repositories Kolibri OS

Rev

Rev 5208 | Rev 5218 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5208 Rev 5213
Line 717... Line 717...
717
	jne .els_0
717
	jne .els_0
718
		mov edi,dword[edx+offs_vert_zp+offs_zbup_x]
718
		mov edi,dword[edx+offs_vert_zp+offs_zbup_x]
719
		sub edi,dword[ebx+offs_vert_zp+offs_zbup_x]
719
		sub edi,dword[ebx+offs_vert_zp+offs_zbup_x]
720
		mov dword[norm],edi
720
		mov dword[norm],edi
721
		fild dword[norm]
721
		fild dword[norm]
722
		mov esi,dword[ecx+offs_vert_zp+offs_zbup_y]
722
		mov edi,dword[ecx+offs_vert_zp+offs_zbup_y]
723
		sub esi,dword[ebx+offs_vert_zp+offs_zbup_y]
723
		sub edi,dword[ebx+offs_vert_zp+offs_zbup_y]
724
		mov dword[norm],edi
724
		mov dword[norm],edi
725
		fimul dword[norm]
725
		fimul dword[norm]
726
		mov edi,dword[ecx+offs_vert_zp+offs_zbup_x]
726
		mov edi,dword[ecx+offs_vert_zp+offs_zbup_x]
727
		sub edi,dword[ebx+offs_vert_zp+offs_zbup_x]
727
		sub edi,dword[ebx+offs_vert_zp+offs_zbup_x]
728
		mov dword[norm],edi
728
		mov dword[norm],edi
Line 768... Line 768...
768
		.els_1:
768
		.els_1:
769
			; no culling
769
			; no culling
770
			cmp dword[front],0
770
			cmp dword[front],0
771
			je @f
771
			je @f
772
				stdcall dword[edi+offs_cont_draw_triangle_front], edi,ebx,ecx,edx
772
				stdcall dword[edi+offs_cont_draw_triangle_front], edi,ebx,ecx,edx
-
 
773
				jmp .end_f
773
			@@:
774
			@@:
774
				stdcall dword[edi+offs_cont_draw_triangle_back], edi,ebx,ecx,edx
775
				stdcall dword[edi+offs_cont_draw_triangle_back], edi,ebx,ecx,edx
775
		jmp .end_f
776
		jmp .end_f
776
	.els_0:
777
	.els_0:
777
		;eax = cc[2]
778
		;eax = cc[2]
Line 799... Line 800...
799
pushad
800
pushad
800
	mov ebx,[p0]
801
	mov ebx,[p0]
801
	mov ecx,[p1]
802
	mov ecx,[p1]
802
	mov edx,[p2]
803
	mov edx,[p2]
Line 803... Line -...
803
 
-
 
804
if DEBUG ;(1) gl_draw_triangle_clip
-
 
805
pushad
-
 
806
	stdcall dbg_print,txt_sp,m_1
-
 
807
	add ebx,offs_vert_color
-
 
808
	add ecx,offs_vert_color
-
 
809
	add edx,offs_vert_color
-
 
810
	stdcall gl_print_matrix,ebx,1
-
 
811
	stdcall gl_print_matrix,ecx,1
-
 
812
	stdcall gl_print_matrix,edx,1
-
 
813
popad
-
 
814
end if
-
 
815
 
-
 
816
;	finit ;???
-
 
817
 
804
 
818
	mov edi,[ebx+offs_vert_clip_code]
805
	mov edi,[ebx+offs_vert_clip_code]
819
	mov [cc],edi
806
	mov [cc],edi
820
	mov eax,[ecx+offs_vert_clip_code]
807
	mov eax,[ecx+offs_vert_clip_code]
821
	mov [cc+4],eax
808
	mov [cc+4],eax