[Public WebGL] Null return values from create*

Glenn Maynard [email protected]
Sat Apr 14 16:58:53 PDT 2012

On Sat, Apr 14, 2012 at 2:40 PM, Gregg Tavares (勤) <[email protected]> wrote:

> The MO of the WebGL group is to bring OpenGL ES 2.0 to the Web. Not design
> some new API.

An appropriate MO would be "bring the rendering capabilities of OpenGL ES
2.0 to the Web".  OpenGL ES is a C API, making it a rather poor model for a
JavaScript API.  That doesn't mean the WebGL API should have been
completely different, of course; making an API which is intuitively clear
to past users of OpenGL, while being a natural API in the platform, aren't
conflicting goals.  Even without moving functions to objects, there's no
benefit to anybody in having separate methods for deleting different
objects: that's an artifact of OpenGL's resource mechanism (integers) that
doesn't exist with WebGL's resource objects.  "deleteObject(WebGLObject)"
would have been enough.

Glenn Maynard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://khronos.org/pipermail/public_webgl_khronos.org/attachments/20120414/4b119332/attachment.html>

More information about the public_webgl mailing list