MCPcopy Create free account
hub / github.com/assaultcube/AC / reloadtexture

Function reloadtexture

source/src/texture.cpp:538–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536}
537
538bool 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
549void reloadtextures()
550{

Callers 4

reloadtexturesFunction · 0.85
reloadfontsFunction · 0.85
screenshotpreviewFunction · 0.85
resetglFunction · 0.85

Calls 1

loadsurfaceFunction · 0.85

Tested by

no test coverage detected