Loads an environment map for bumpmapping. Returns 1 on success, 0 on fail
| 992 | |
| 993 | // Loads an environment map for bumpmapping. Returns 1 on success, 0 on fail |
| 994 | int d3d_LoadEnvironmentMap() { |
| 995 | if (d3d_EnvironmentMap != -1) |
| 996 | return 1; |
| 997 | |
| 998 | d3d_EnvironmentMap = bm_AllocLoadFileBitmap("Environment.ogf", 0); |
| 999 | |
| 1000 | if (d3d_EnvironmentMap < 0) |
| 1001 | return 0; |
| 1002 | |
| 1003 | return 1; |
| 1004 | } |
| 1005 | |
| 1006 | // Initializes the texture cache for Direct3D |
| 1007 | int d3d_TextureCacheInit() { |
no test coverage detected