Subversion Repositories Kolibri OS

Rev

Rev 5159 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

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