| 298 | } |
| 299 | |
| 300 | int InitTextures() { |
| 301 | // Initalizes the texture system |
| 302 | |
| 303 | int i, tex; |
| 304 | |
| 305 | mprintf(0, "Initializing texture system.\n"); |
| 306 | for (i = 0; i < MAX_TEXTURES; i++) |
| 307 | GameTextures[i].used = 0; |
| 308 | |
| 309 | tex = AllocTexture(); |
| 310 | GameTextures[tex].bm_handle = BAD_BITMAP_HANDLE; |
| 311 | strcpy(GameTextures[tex].name, "SAMPLE TEXTURE"); |
| 312 | |
| 313 | // Initialize procedural tables and such |
| 314 | InitProcedurals(); |
| 315 | |
| 316 | atexit(FreeAllTextures); |
| 317 | |
| 318 | return 1; |
| 319 | } |
| 320 | |
| 321 | // Set aside a texture for use |
| 322 | // This function returns a valid texture handle |
no test coverage detected