Skip to content

WebGLState: Add getParameter and pixelStorei#2204

Merged
Methuselah96 merged 2 commits into
three-types:masterfrom
mrxz:webgl-state-getparameter-pixelstorei
Jun 16, 2026
Merged

WebGLState: Add getParameter and pixelStorei#2204
Methuselah96 merged 2 commits into
three-types:masterfrom
mrxz:webgl-state-getparameter-pixelstorei

Conversation

@mrxz

@mrxz mrxz commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

With r184 the WebGLState class gained two new methods as part of mrdoob/three.js#33227. These are accessible through the renderer (renderer.state) and are thus part of the public API. This PR adds both pixelStorei and getParameter to the WebGLState.d.ts file.

Both methods are effectively wrappers for the corresponding ones in WebGLRenderingContext. I've based the parameter and return types on the ones used in lib.dom.d.ts but kept the names as they appear in the Three.js source code.

@Methuselah96 Methuselah96 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Methuselah96 Methuselah96 merged commit 60562d4 into three-types:master Jun 16, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants