View Full Version : WebGL...Array constructor

02-03-2010, 04:09 PM
In webgl spec i've found a WebGLTypeArray constructor like this:

Constructor(in sequence<GLfloat> array)
what's the sequence<GLfloat>? Is it c-like glfloat array?

02-04-2010, 01:19 AM
typedef float GLfloat;
It's only a simple float array [0.0, 1.0, 2.0]

02-04-2010, 05:44 AM
in fact it's platform dependant according to opengl spec but my question was is it a c-like array - sequence of 4-bit floats or something else (js-array, other representation of array)?

And another question. Would if work if I invoke this constructor from external code (flash plugin, silverlight plugin) with a pointer to c-like float array?

10-20-2011, 04:32 AM
Thanks for the detailed report you posted above. I found the solution to my problem thanks to your posts. Good job!!!