MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / rend_PreUploadTextureToCard

Function rend_PreUploadTextureToCard

legacy/renderer/renderer.cpp:2100–2119  ·  view source on GitHub ↗

Preuploads a texture to the video card

Source from the content-addressed store, hash-verified

2098}
2099// Preuploads a texture to the video card
2100void 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
2121void rend_FreePreUploadedTexture(int handle, int map_type) {
2122 switch (Renderer_type) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected