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

Re: [Public WebGL] Typed Arrays



Yeehaw, it works in Chrome 9 beta.  Just finished testing.

On Fri, Dec 17, 2010 at 1:26 PM, Kenneth Russell <kbr@google.com> wrote:
On Thu, Dec 16, 2010 at 5:28 PM, John Davis <jdavis@pcprogramming.com> wrote:
> Pleeeze don't flog me for asking here.
> For Chrome, what is the way to get from an XHR to a typed array?  Just need
> a link.

For both Safari and Chromium nightly builds, use the new .responseType
and .response fields on XHR. See
https://bugs.webkit.org/show_bug.cgi?id=49633 .

P.S. You really should use the Typed Array spec's DataView to parse
the response from the XHR rather than assuming the endianness of your
host system, in particular for multi-byte values.

-Ken