Subversion Repositories Kolibri OS

Rev

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

Rev 5153 Rev 5159
Line 16... Line 16...
16
	mov dword[eax+offs_cont_clear_depth],ebx
16
	mov dword[eax+offs_cont_clear_depth],ebx
17
	ret
17
	ret
18
endp
18
endp
19
 
19
 
Line -... Line 20...
-
 
20
align 4
20
;void glopClear(GLContext *c,GLParam *p)
21
proc glopClear uses eax ebx, context:dword, p:dword
21
;{
-
 
22
;  int mask=p[1].i;
22
	mov eax,[context]
-
 
23
	mov ebx,[eax+offs_cont_clear_color+8] ;context.clear_color.v[2]
-
 
24
	shl ebx,16
23
;  int z=0;
25
	push ebx
24
;  int r=(int)(c->clear_color.v[0]*65535);
26
	mov ebx,[eax+offs_cont_clear_color+4] ;context.clear_color.v[1]
25
;  int g=(int)(c->clear_color.v[1]*65535);
27
	shl ebx,16
-
 
28
	push ebx
26
;  int b=(int)(c->clear_color.v[2]*65535);
29
	mov ebx,[eax+offs_cont_clear_color] ;context.clear_color.v[0]
-
 
30
	shl ebx,16
-
 
31
	push ebx
27
;
32
 
-
 
33
	mov ebx,[p]
-
 
34
	mov ebx,[ebx+4] ;ebx = p[1]
-
 
35
	and ebx,GL_COLOR_BUFFER_BIT
-
 
36
	push ebx
-
 
37
	mov ebx,[p]
28
;  /* TODO : correct value of Z */
38
	mov ebx,[ebx+4] ;ebx = p[1]
-
 
39
	and ebx,GL_DEPTH_BUFFER_BIT
29
;
40
 
30
;  ZB_clear(c->zb,mask & GL_DEPTH_BUFFER_BIT,z,
41
	; TODO : correct value of Z
31
;	   mask & GL_COLOR_BUFFER_BIT,r,g,b);
42
	stdcall ZB_clear,[eax+offs_cont_zb],ebx,0 ;,...,r,g,b
-
 
43
	ret
-
 
44
endp
32
;}
45