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

Re: [Public WebGL] Null return values from create*



On Sat, Apr 14, 2012 at 2:40 PM, Gregg Tavares (勤) <gman@google.com> 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