MCPcopy Create free account
hub / github.com/assaultcube/AC / blocktexusage

Function blocktexusage

source/src/worldlight.cpp:368–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368void blocktexusage(const block &b, uchar *used)
369{
370 const sqr *q = (const sqr *)((&b)+1);
371 loopirev(b.xs * b.ys)
372 { // collect used texture slots in block
373 used[q->wtex] = 1;
374 if(q->type != SOLID)
375 {
376 used[q->ctex] = 1;
377 used[q->ftex] = 1;
378 used[q->utex] = 1;
379 }
380 q++;
381 }
382}
383
384void blockpaste(const block &b, int bx, int by, bool light, uchar *texmap) // slow version, editmode only
385{

Callers 1

pasteFunction · 0.85

Calls 1

loopirevFunction · 0.70

Tested by

no test coverage detected