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

Function FreeStaticProceduralsForTexture

Descent3/gametexture.cpp:461–465  ·  view source on GitHub ↗

Frees the memory used by static procedural elements

Source from the content-addressed store, hash-verified

459
460// Frees the memory used by static procedural elements
461void FreeStaticProceduralsForTexture(int handle) {
462 if (GameTextures[handle].procedural->static_proc_elements)
463 mem_free(GameTextures[handle].procedural->static_proc_elements);
464 GameTextures[handle].procedural->static_proc_elements = NULL;
465}
466
467// Given a texture handle, returns that textures bitmap
468// If the texture is animated, returns framenum mod num_of_frames in the animation

Callers 5

OnInitDialogMethod · 0.85
DestroyWindowMethod · 0.85
DestroyWindowMethod · 0.85
OnInitDialogMethod · 0.85
FreeProceduralForTextureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected