Reputation: 116373
In Chrome, open your JavaScript console and you will find WebGLActiveInfo
as a global variable. I've tried looking for documentation on this function but nothing comes up.
Naively calling it will produce a TypeError: Illegal constructor
, which is frustrating because it's a black box:
function WebGLActiveInfo() { [native code] }
What does this function do? How can I use it?
Upvotes: 1
Views: 205
Reputation:
It's not a function, it's the name of a native Object. Same as WebGLRenderingContext
, WebGLTexture
, Blob
, or XMLHTTPRequest
. Type any of those and you'll get the same function signature.
WebGLActiveInfo
objects are returned from gl.getActiveUniform
and gl.getActiveAttrib
Upvotes: 1