| 750 | } |
| 751 | |
| 752 | void 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 | |
| 762 | void resettmu(int n) |
| 763 | { |
no test coverage detected