Sets all the bumpmaps to unused
| 32 | |
| 33 | // Sets all the bumpmaps to unused |
| 34 | void bump_InitBumpmaps() { |
| 35 | int i; |
| 36 | |
| 37 | for (i = 0; i < MAX_BUMPMAPS; i++) { |
| 38 | GameBumpmaps[i].flags = 0; |
| 39 | GameBumpmaps[i].data = NULL; |
| 40 | GameBumpmaps[i].cache_slot = -1; |
| 41 | Free_bumpmap_list[i] = i; |
| 42 | } |
| 43 | |
| 44 | atexit(bump_ShutdownBumpmaps); |
| 45 | } |
| 46 | void bump_ShutdownBumpmaps(void) { |
| 47 | int i; |
| 48 |