I noticed that the "mouse events" (and "textures") demo here runs in Chrome, Firefox and Opera (the interface is a little bit bad, so bear with it).
As you can see, the Model, View and Projection matrices are being supplied as vanilla JavaScript arrays. Float32Array only appears once in the 2 scripts, and that is for uploading cube vertex data.
There's something I don't understand about this, because I've thus far assumed all data must go up as typed arrays. I see these options:
- All arrays DO have to go to calls as typed arrays, yet conversions are implicit.
- Only certain calls required typed arrays as input. If so, which do/don't? Where can I review this, as WebGL doesn't seem to have official API docs yet!
- There are discrepancies between how different browser implementations handle this: Some may do implicit array conversion, while others may not.