Searches thru all textures for a specific name, returns -1 if not found or index of texture with name
| 352 | // Searches thru all textures for a specific name, returns -1 if not found |
| 353 | // or index of texture with name |
| 354 | int FindTextureName(const char *name) { |
| 355 | int i, num_counted = 0; |
| 356 | ; |
| 357 | |
| 358 | ASSERT(name != NULL); |
| 359 | |
| 360 | for (i = 0; i < MAX_TEXTURES && num_counted < Num_textures; i++) { |
| 361 | if (GameTextures[i].used) { |
| 362 | num_counted++; |
| 363 | if (!stricmp(name, GameTextures[i].name)) |
| 364 | return i; |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | return -1; |
| 369 | } |
| 370 | |
| 371 | // Searches thru all textures for a bitmap of a specific name, returns -1 if not found |
| 372 | // or index of texture with name |
no outgoing calls
no test coverage detected