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

Function FreeTexture

Descent3/gametexture.cpp:824–834  ·  view source on GitHub ↗

Frees a texture that is being used and Decrements number of textures in use

Source from the content-addressed store, hash-verified

822// Frees a texture that is being used and
823// Decrements number of textures in use
824void FreeTexture(int n) {
825 ASSERT(GameTextures[n].used);
826
827 FreeTextureBumpmaps(n);
828
829 GameTextures[n].used = 0;
830 GameTextures[n].name[0] = 0;
831 Num_textures--;
832
833 FreeProceduralForTexture(n);
834}
835
836// Given current index, gets index of next texture in use
837int GetNextTexture(int n) {

Callers 5

OnWtexdlgAddnewMethod · 0.85
OnDeleteMethod · 0.85
OnDeleteMegacellMethod · 0.85
FreeAllTexturesFunction · 0.85

Calls 2

FreeTextureBumpmapsFunction · 0.85
FreeProceduralForTextureFunction · 0.85

Tested by

no test coverage detected