Subversion Repositories Kolibri OS

Rev

Rev 5159 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5153 IgorA 1
 
2
proc glopClearColor uses ecx esi edi, context:dword, p:dword
3
	mov esi,[p]
4
	add esi,4
5
	mov edi,[context]
6
	add edi,offs_cont_clear_color
7
	mov ecx,4
8
	rep movsd
9
endp
10
11
 
12
proc glopClearDepth uses eax ebx, context:dword, p:dword
13
	mov eax,[context]
14
	mov ebx,[p]
15
	mov ebx,[ebx+4] ;ebx = p[1]
16
	mov dword[eax+offs_cont_clear_depth],ebx
17
	ret
18
endp
19
20
 
21
;{
22
;  int mask=p[1].i;
23
;  int z=0;
24
;  int r=(int)(c->clear_color.v[0]*65535);
25
;  int g=(int)(c->clear_color.v[1]*65535);
26
;  int b=(int)(c->clear_color.v[2]*65535);
27
;
28
;  /* TODO : correct value of Z */
29
;
30
;  ZB_clear(c->zb,mask & GL_DEPTH_BUFFER_BIT,z,
31
;	   mask & GL_COLOR_BUFFER_BIT,r,g,b);
32
;}
33