MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ClearAllProceduralsFromTexture

Function ClearAllProceduralsFromTexture

Descent3/procedurals.cpp:462–471  ·  view source on GitHub ↗

Clears all the procedurals elements attached to this texture

Source from the content-addressed store, hash-verified

460}
461// Clears all the procedurals elements attached to this texture
462void ClearAllProceduralsFromTexture(int texnum) {
463 int proc_num = GameTextures[texnum].procedural->dynamic_proc_elements;
464
465 while (proc_num != -1) {
466 int temp = DynamicProcElements[proc_num].next;
467 ProcElementUnlink(proc_num, texnum);
468 proc_num = temp;
469 }
470 GameTextures[texnum].procedural->num_static_elements = 0;
471}
472// Adds one point to a bitmap
473void AddProcPoint(int x, int y, uint8_t color) {
474 x &= (PROC_SIZE - 1);

Callers 4

OnClearProceduralsMethod · 0.85
OnCopyProceduralMethod · 0.85
OnClearProceduralsMethod · 0.85
OnCopyProceduralMethod · 0.85

Calls 1

ProcElementUnlinkFunction · 0.85

Tested by

no test coverage detected