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

Function AllocateStaticProceduralsForTexture

Descent3/gametexture.cpp:454–458  ·  view source on GitHub ↗

Allocates the memory needed for static elements for a procedural texture

Source from the content-addressed store, hash-verified

452
453// Allocates the memory needed for static elements for a procedural texture
454void 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
461void FreeStaticProceduralsForTexture(int handle) {

Callers 7

OnInitDialogMethod · 0.85
DestroyWindowMethod · 0.85
OnCopyProceduralMethod · 0.85
DestroyWindowMethod · 0.85
OnInitDialogMethod · 0.85
OnCopyProceduralMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected