Results 1 to 4 of 4

Thread: WebGL...Array constructor

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    11

    WebGL...Array constructor

    In webgl spec i've found a WebGLTypeArray constructor like this:
    Code :
    Constructor(in sequence<GLfloat> array)
    what's the sequence<GLfloat>? Is it c-like glfloat array?

  2. #2
    Junior Member
    Join Date
    Dec 2009
    Location
    Milan, Italy
    Posts
    9

    Re: WebGL...Array constructor

    Code :
    typedef float          GLfloat;
    It's only a simple float array [0.0, 1.0, 2.0]

  3. #3
    Junior Member
    Join Date
    Oct 2009
    Posts
    11

    Re: WebGL...Array constructor

    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?

  4. #4

    Re: WebGL...Array constructor

    Thanks for the detailed report you posted above. I found the solution to my problem thanks to your posts. Good job!!!

Similar Threads

  1. Array reduction example
    By toastedcrumpets in forum OpenCL
    Replies: 1
    Last Post: 11-05-2009, 06:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •