Preuploads a texture to the video card
| 2098 | } |
| 2099 | // Preuploads a texture to the video card |
| 2100 | void rend_PreUploadTextureToCard(int handle, int map_type) { |
| 2101 | switch (Renderer_type) { |
| 2102 | case RENDERER_SOFTWARE_16BIT: |
| 2103 | case RENDERER_SOFTWARE_8BIT: |
| 2104 | break; |
| 2105 | case RENDERER_GLIDE: |
| 2106 | break; |
| 2107 | case RENDERER_OPENGL: |
| 2108 | break; |
| 2109 | case RENDERER_DIRECT3D: |
| 2110 | #ifdef USE_D3D |
| 2111 | d3d_PreUploadTextureToCard(handle, map_type); |
| 2112 | #endif |
| 2113 | break; |
| 2114 | default: |
| 2115 | mprintf(0, "Function not implemented for the lib!\n"); |
| 2116 | Int3(); |
| 2117 | break; |
| 2118 | } |
| 2119 | } |
| 2120 | // Frees an uploaded texture from the video card |
| 2121 | void rend_FreePreUploadedTexture(int handle, int map_type) { |
| 2122 | switch (Renderer_type) { |
nothing calls this directly
no test coverage detected