[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Public WebGL] Purpose of WebGLObjectArray ?


I'm not sure to grasp the need and benefits of WebGLObjectArray ?

The only place it's used is getAttachedShaders() and even for this
function it would be probably simpler and more useful to return a
standard array (ie. WebGLObject[ ] in the IDL) so that all array
functions are available as usual to developers, e.g checking a shader
has been attached correctly would be intuitively enough :

if (!gl.getAttachedShaders(program).indexOf(coolShader)) {
   // coolShader is not yet attached to this program, let's attach it now...

Thoughts ?

You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email: