| 17 | |
| 18 | // A wrapper class for WebGL texture and its utility functions. |
| 19 | class GlTextureImpl { |
| 20 | constructor(gl, texture, width, height) { |
| 21 | this.gl_ = gl; |
| 22 | this.texture_ = texture; |
| 23 | this.width = width; |
| 24 | this.height = height; |
| 25 | } |
| 26 | |
| 27 | bindTexture() { |
| 28 | this.gl_.bindTexture(this.gl_.TEXTURE_2D, this.texture_); |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | // A wrapper class for WebGL texture and its associted framebuffer and utility functions. |
| 33 | class GlTextureFramebuffer extends GlTextureImpl { |
nothing calls this directly
no outgoing calls
no test coverage detected