You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In TypeScript 4.3, `WebGLObject` was dropped from `lib.dom.d.ts`.
This commit replaces uses of `WebGLObject` with `WebGLRenderbuffer|WebGLTexture`.
Based on reading TWGL's `createFramebufferInfo(...)` these two are the
only possible object types for attachments in `FramebufferInfo`.
Copy file name to clipboardExpand all lines: src/framebuffers.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,7 @@ const LINEAR = 0x2601;
94
94
* @property {number} [level] level for `gl.framebufferTexture2D`. Defaults to 0.
95
95
* @property {number} [layer] layer for `gl.framebufferTextureLayer`. Defaults to undefined.
96
96
* If set then `gl.framebufferTextureLayer` is called, if not then `gl.framebufferTexture2D`
97
-
* @property {WebGLObject} [attachment] An existing renderbuffer or texture.
97
+
* @property {WebGLRenderbuffer|WebGLTexture} [attachment] An existing renderbuffer or texture.
98
98
* If provided will attach this Object. This allows you to share
99
99
* attachments across framebuffers.
100
100
* @memberOf module:twgl
@@ -137,7 +137,7 @@ function isRenderbufferFormat(format) {
137
137
/**
138
138
* @typedef {Object} FramebufferInfo
139
139
* @property {WebGLFramebuffer} framebuffer The WebGLFramebuffer for this framebufferInfo
140
-
* @property {WebGLObject[]} attachments The created attachments in the same order as passed in to {@link module:twgl.createFramebufferInfo}.
140
+
* @property {(WebGLRenderbuffer|WebGLTexture)[]} attachments The created attachments in the same order as passed in to {@link module:twgl.createFramebufferInfo}.
141
141
* @property {number} width The width of the framebuffer and its attachments
142
142
* @property {number} height The width of the framebuffer and its attachments
0 commit comments