Given a texture page, allocs a texture and calls AssignTexPageToTexture to actually load bitmaps and values. Rturns texture handle on success, -1 if fail
| 918 | // Given a texture page, allocs a texture and calls AssignTexPageToTexture to actually |
| 919 | // load bitmaps and values. Rturns texture handle on success, -1 if fail |
| 920 | int mng_SetAndLoadTexture(mngs_texture_page *texpage, CFILE *infile) { |
| 921 | int n; |
| 922 | |
| 923 | n = AllocTexture(); |
| 924 | if (n < 0) |
| 925 | return -1; |
| 926 | if (!mng_AssignTexPageToTexture(texpage, n, infile)) |
| 927 | return -1; |
| 928 | |
| 929 | return n; |
| 930 | } |
| 931 | |
| 932 | // extern char Texture256Names[][80]; |
| 933 | // extern int Num_256s; |
no test coverage detected