Subversion Repositories Kolibri OS

Rev

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

Rev 5153 Rev 5159
Line 4... Line 4...
4
	mov ebx,[p]
4
	mov ebx,[p]
5
	mov ecx,[ebx+offs_zbup_y]
5
	mov ecx,[ebx+offs_zbup_y]
6
	imul ecx,[eax+offs_zbuf_xsize]
6
	imul ecx,[eax+offs_zbuf_xsize]
7
	add ecx,[ebx+offs_zbup_x]
7
	add ecx,[ebx+offs_zbup_x]
8
	add ecx,[eax+offs_zbuf_zbuf]
8
	shl ecx,1
-
 
9
	add ecx,[eax+offs_zbuf_zbuf]
9
	mov edx,[eax+offs_zbuf_linesize]
10
	mov edx,[eax+offs_zbuf_linesize]
10
	imul edx,[ebx+offs_zbup_y]
11
	imul edx,[ebx+offs_zbup_y]
11
	mov edi,[ebx+offs_zbup_x]
12
	mov edi,[ebx+offs_zbup_x]
12
	imul edi,PSZB
13
	imul edi,PSZB
13
	add edx,edi
14
	add edx,edi
14
	add edx,[eax+offs_zbuf_pbuf]
15
	add edx,[eax+offs_zbuf_pbuf]
15
	mov edi,[ebx+offs_zbup_z]
16
	mov edi,[ebx+offs_zbup_z]
16
	shr edi,ZB_POINT_Z_FRAC_BITS
17
	shr edi,ZB_POINT_Z_FRAC_BITS
17
	cmp edi,[ecx]
18
	cmp di,word[ecx]
18
	jl .end_f
19
	jl .end_f
19
if TGL_FEATURE_RENDER_BITS eq 24
20
if TGL_FEATURE_RENDER_BITS eq 24
20
	mov eax,[ebx+offs_zbup_r]
21
	mov eax,[ebx+offs_zbup_r]
21
	mov byte[edx],ah
22
	mov byte[edx],ah
22
	mov eax,[ebx+offs_zbup_g]
23
	mov eax,[ebx+offs_zbup_g]
23
	mov byte[edx+1],ah
24
	mov byte[edx+1],ah
Line 25... Line 26...
25
	mov byte[edx+2],ah
26
	mov byte[edx+2],ah
26
else
27
else
27
;	*pp = RGB_TO_PIXEL(p->r, p->g, p->b);
28
;	*pp = RGB_TO_PIXEL(p->r, p->g, p->b);
28
end if
29
end if
29
	mov [ecx],edi
30
	mov word[ecx],di
30
	.end_f:
31
	.end_f:
31
	ret
32
	ret
32
endp
33
endp
33
 
34
 
Line 34... Line 35...
34
INTERP_Z equ 1
35
INTERP_Z equ 1