Allocates the memory needed for static elements for a procedural texture
| 452 | |
| 453 | // Allocates the memory needed for static elements for a procedural texture |
| 454 | void AllocateStaticProceduralsForTexture(int handle, int num_elements) { |
| 455 | GameTextures[handle].procedural->static_proc_elements = |
| 456 | (static_proc_element *)mem_malloc(sizeof(static_proc_element) * num_elements); |
| 457 | ASSERT(GameTextures[handle].procedural->static_proc_elements); |
| 458 | } |
| 459 | |
| 460 | // Frees the memory used by static procedural elements |
| 461 | void FreeStaticProceduralsForTexture(int handle) { |
no outgoing calls
no test coverage detected