Clears all the procedurals elements attached to this texture
| 460 | } |
| 461 | // Clears all the procedurals elements attached to this texture |
| 462 | void 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 |
| 473 | void AddProcPoint(int x, int y, uint8_t color) { |
| 474 | x &= (PROC_SIZE - 1); |
no test coverage detected