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

Re: [Public WebGL] Typed Arrays



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

-----------------------------------------------------------
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: