link the procedural into the list for its texture
| 436 | } |
| 437 | // link the procedural into the list for its texture |
| 438 | void ProcElementLink(int index, int texnum) { |
| 439 | dynamic_proc_element *proc = &DynamicProcElements[index]; |
| 440 | proc->next = GameTextures[texnum].procedural->dynamic_proc_elements; |
| 441 | GameTextures[texnum].procedural->dynamic_proc_elements = index; |
| 442 | ASSERT(proc->next != index); |
| 443 | |
| 444 | proc->prev = -1; |
| 445 | if (proc->next != -1) |
| 446 | DynamicProcElements[proc->next].prev = index; |
| 447 | } |
| 448 | // Unlinks a proc_element from a texture |
| 449 | void ProcElementUnlink(int index, int texnum) { |
| 450 | dynamic_proc_element *proc = &DynamicProcElements[index]; |
no outgoing calls
no test coverage detected