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?
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?
typedef float GLfloat;
It’s only a simple float array [0.0, 1.0, 2.0]
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?