Rev 5153 | Rev 6172 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5153 | Rev 5159 | ||
---|---|---|---|
Line 55... | Line 55... | ||
55 | jmp .error |
55 | jmp .error |
56 | .end_s: |
56 | .end_s: |
Line 57... | Line 57... | ||
57 | 57 | ||
58 | mov ecx,[edi+offs_zbuf_xsize] |
58 | mov ecx,[edi+offs_zbuf_xsize] |
59 | imul ecx,[edi+offs_zbuf_ysize] |
59 | imul ecx,[edi+offs_zbuf_ysize] |
Line 60... | Line 60... | ||
60 | shl ecx,2 ;*= sizeof(unsigned short) |
60 | shl ecx,1 ;*= sizeof(unsigned short) |
61 | 61 | ||
62 | stdcall gl_malloc, ecx |
62 | stdcall gl_malloc, ecx |
63 | mov [edi+offs_zbuf_zbuf],eax |
63 | mov [edi+offs_zbuf_zbuf],eax |
Line 113... | Line 113... | ||
113 | and eax,not 3 |
113 | and eax,not 3 |
114 | mov [ebx+offs_zbuf_linesize],eax ;zb.linesize = (xsize * PSZB + 3) & ~3 |
114 | mov [ebx+offs_zbuf_linesize],eax ;zb.linesize = (xsize * PSZB + 3) & ~3 |
Line 115... | Line 115... | ||
115 | 115 | ||
116 | mov ecx,edi |
116 | mov ecx,edi |
117 | imul ecx,esi |
117 | imul ecx,esi |
Line 118... | Line 118... | ||
118 | shl ecx,2 ;*= sizeof(unsigned short) |
118 | shl ecx,1 ;*= sizeof(unsigned short) |
119 | 119 | ||
120 | stdcall gl_free,dword[ebx+offs_zbuf_zbuf] |
120 | stdcall gl_free,dword[ebx+offs_zbuf_zbuf] |
Line 430... | Line 430... | ||
430 | ; assert(0); |
430 | ; assert(0); |
431 | ; } |
431 | ; } |
432 | ;} |
432 | ;} |
433 | ; |
433 | ; |
434 | ;#endif /* TGL_FEATURE_RENDER_BITS == 32 */ |
434 | ;#endif /* TGL_FEATURE_RENDER_BITS == 32 */ |
- | 435 | ||
- | 436 | ||
435 | ; |
437 | ; |
- | 438 | ; adr must be aligned on an 'int' |
|
436 | ; |
439 | ; |
532 | ; color = RGB_TO_PIXEL(r, g, b); |
551 | ;color = RGB_TO_PIXEL(r, g, b); |
533 | ; memset_s(pp, color, zb->xsize); |
552 | ;memset_s(ebx, color, zb->xsize); |
- | 553 | end if |
|
534 | ;#elif TGL_FEATURE_RENDER_BITS == 32 |
554 | if TGL_FEATURE_RENDER_BITS eq 32 |
535 | ; color = RGB_TO_PIXEL(r, g, b); |
555 | ;color = RGB_TO_PIXEL(r, g, b); |
536 | ; memset_l(pp, color, zb->xsize); |
556 | ;memset_l(ebx, color, zb->xsize); |
- | 557 | end if |
|
537 | ;#elif TGL_FEATURE_RENDER_BITS == 24 |
558 | if TGL_FEATURE_RENDER_BITS eq 24 |
538 | ; memset_RGB24(pp,r>>8,g>>8,b>>8,zb->xsize); |
- | |
539 | ;#else |
559 | sub esp,16 |
540 | ;#error TODO |
560 | stdcall memset_RGB24,ebx |
541 | ;#endif |
561 | end if |
542 | ; pp = (PIXEL *) ((char *) pp + zb->linesize); |
562 | add ebx,[eax+offs_zbuf_linesize] |
- | 563 | loop .cycle_0 |
|
543 | ; } |
564 | @@: |
544 | ; } |
565 | ret |
545 | ;}>>>>>><>>>><>><>>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>>><>><>><>> |
566 | endp>>><>><>>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>><>>><>><>><>> |