Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/excaliburjs/Excalibur. 🎮 Your friendly TypeScript 2D game engine for the web 🗡️ excaliburjs.com
excalibur excaliburjs game-development game-engine game-framework gamedev games html5-canvas typescript
Something went wrong. Try again.
TypeScript
123456789101112131415161718export class RenderSource { constructor( private _gl: WebGLRenderingContext, private _texture: WebGLTexture ) {}
public use() { const gl = this._gl; gl.activeTexture(gl.TEXTURE0); gl.bindTexture(gl.TEXTURE_2D, this._texture); }
public disable() { const gl = this._gl; gl.bindTexture(gl.TEXTURE_2D, null); }}