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

Function committmu

source/src/texture.cpp:752–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

750}
751
752void committmu(int n, tmu &f)
753{
754 if(n>=maxtmus) return;
755 if(tmus[n].mode!=f.mode) glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, f.mode);
756 if(memcmp(tmus[n].color, f.color, sizeof(f.color))) glTexEnvfv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, f.color);
757 committmufunc(true, tmus[n].rgb, f.rgb);
758 committmufunc(false, tmus[n].alpha, f.alpha);
759 tmus[n] = f;
760}
761
762void resettmu(int n)
763{

Callers 4

resettmuFunction · 0.85
scaletmuFunction · 0.85
colortmuFunction · 0.85
setuptmuFunction · 0.85

Calls 1

committmufuncFunction · 0.85

Tested by

no test coverage detected