Uh oh!
There was an error while loading. Please reload this page.
Add all common parameters to context definition and make gl.getParameter support. - #66
Add all common parameters to context definition and make gl.getParameter support.#66Molay wants to merge 2 commits into
Conversation
…efinition, make method gl.getParameter support int32array and float32array return value. fix(webgl_rendering_context): Fix the return value of method gl.getContextAttributes. feat(webgl_extensions): Add WEBGL_draw_buffers extension. feat(egl_context_wrapper): Add method glGetFloatv to get float parameter value(s).
googlebot
commented
Mar 3, 2020
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
Molay
commented
Mar 3, 2020
@googlebot I signed it! |
googlebot
commented
Mar 3, 2020
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
…port GLboolean, GLboolean[], BINDING(or null), and etc. feat(test): Add src/tests/get_parameter_test.ts script. feat(egl_context_wrapper): Add method glGetBooleanv to get boolean parameter value(s).
nkreeger
left a comment
There was a problem hiding this comment.
Sorry I was out on leave and missed this!
Just a few comments, thank you for this detailed PR!
| const { name, type, subType, length, /*nullable,*/ extension } = parameterDefinition; | ||
| let ptarget: any = gl, pname: GLenum; | ||
| const result = new VerifyResult(); | ||
| // if (name === 'DRAW_BUFFER?_WEBGL') return verifyDrawBuffersWebgl(gl, parameterDefinition); |
| value = gl.getParameter(pname); | ||
| } | ||
| catch (error) { | ||
| // return result.setObject(error); |
| let numPassed = 0; | ||
| parameterDefinitions.forEach((parameterDefinition, index) => { | ||
| const result = verifyParameterDefinition(gl, parameterDefinition); | ||
| result.passed ? process.stdout.write(`\u001b[92m`) : process.stdout.write(`\u001b[91m`); |
There was a problem hiding this comment.
Looks like some formatting problems here.
feat(webgl_rendering_context): Add all common parameters to context definition, make method gl.getParameter support int32array and float32array return value.
fix(webgl_rendering_context): Fix the return value of method gl.getContextAttributes.
feat(webgl_extensions): Add WEBGL_draw_buffers extension.
feat(egl_context_wrapper): Add method glGetFloatv to get float parameter value(s).
This change is