interactive-shader-format
Version:
Rendering engine for Interactive Shader Format effects and generators
17 lines (13 loc) • 335 B
JavaScript
const ISFGLState = function ISFGLState(gl) {
this.gl = gl;
this.textureIndex = 0;
};
ISFGLState.prototype.newTextureIndex = function newTextureIndex() {
const i = this.textureIndex;
this.textureIndex += 1;
return i;
};
ISFGLState.prototype.reset = function reset() {
this.textureIndex = 0;
};
export default ISFGLState;