| 536 | } |
| 537 | |
| 538 | bool reloadtexture(Texture &t) |
| 539 | { |
| 540 | if(t.id) glDeleteTextures(1, &t.id); |
| 541 | int xs = 1, ys = 1, bpp = 0; |
| 542 | t.id = loadsurface(t.name, xs, ys, bpp, t.clamp, t.mipmap, t.canreduce, t.scale); |
| 543 | t.xs = xs; |
| 544 | t.ys = ys; |
| 545 | t.bpp = bpp; |
| 546 | return t.id!=0; |
| 547 | } |
| 548 | |
| 549 | void reloadtextures() |
| 550 | { |
no test coverage detected