MCPcopy Create free account
hub / github.com/Meridian59/Meridian59 / TextureToNumber

Function TextureToNumber

roomedit/source/textures.cpp:98–110  ·  view source on GitHub ↗

/ * TextureToNumber: Return the number associated with the given texture name. */

Source from the content-addressed store, hash-verified

96 * TextureToNumber: Return the number associated with the given texture name.
97 */
98int TextureToNumber(char *name)
99{
100 if (!strcmp(name, "-") || name[0] == 0)
101 return 0;
102
103 TextureInfo *info = FindTextureByName(name);
104 if (info == NULL)
105 {
106 Notify("TextureToNumber got bad texture name %s", name);
107 return 0;
108 }
109 return info->number;
110}
111/***************************************************************************/
112/*
113 * read in the wall texture names

Callers 5

InsertObjectFunction · 0.85
GetSectorMethod · 0.85
CmOkMethod · 0.85
GetSideDefMethod · 0.85
CopySDDataMethod · 0.85

Calls 2

FindTextureByNameFunction · 0.85
NotifyFunction · 0.85

Tested by

no test coverage detected