| 31 | |
| 32 | // A wrapper class for WebGL texture and its associted framebuffer and utility functions. |
| 33 | class GlTextureFramebuffer extends GlTextureImpl { |
| 34 | constructor(gl, framebuffer, texture, width, height) { |
| 35 | super(gl, texture, width, height); |
| 36 | this.framebuffer_ = framebuffer; |
| 37 | } |
| 38 | |
| 39 | bindFramebuffer() { |
| 40 | this.gl_.bindFramebuffer(this.gl_.FRAMEBUFFER, this.framebuffer_); |
| 41 | this.gl_.viewport(0, 0, this.width, this.height); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | // A wrapper class for WebGL program and its utility functions. |
| 46 | class GlProgramImpl { |
nothing calls this directly
no outgoing calls
no test coverage detected