TempleOSCD_160707.ISO

This commit is contained in:
Terry A. Davis authored and minexew committed 2018-09-08 21:47:38 +02:00
1 parent 353eac0dbe
commit c5954d3371
55 files changed
+525 -284

No files matched your search

+4 -3
View File
@@ -226,17 +226,18 @@ public I64 DCSize(CDC *dc)
return 0;
}
public U0 DCDepthBufRst(CDC *dc)
public I32 *DCDepthBufRst(CDC *dc)
{//Reset device context depth buf to far away.
if (dc->depth_buf)
MemSetU32(dc->depth_buf,MAX_I32,dc->width_internal*dc->height);
return dc->depth_buf;
}
public U0 DCDepthBufAlloc(CDC *dc)
public I32 *DCDepthBufAlloc(CDC *dc)
{//Alloc a 32-bit depth buffer for device context.
Free(dc->depth_buf);
dc->depth_buf=MAlloc(dc->width_internal*dc->height*sizeof(I32),dc->mem_task);
DCDepthBufRst(dc);
return DCDepthBufRst(dc);
}
public CDC *DCCopy(CDC *dc,CTask *task=NULL)