setting gl.texture file in javascript


    Jun 02 2008 | 11:57 am
    hi
    I'm trying to define the @file property of jit.gl.texture in javascript, but it's not quite working out, at the moment my code looks like this:
    var texture = new JitterObject("jit.gl.texture", "test"); texture.name = "cloud"; texture.file = "cloud_1.tga";
    What am I doing wrong?

    • Jun 02 2008 | 12:54 pm
      Never mind. It works, there was something wrong with the file.
      On 02 Jun 2008, at 13:57, Brecht Debackere wrote:
      > hi > > I'm trying to define the @file property of jit.gl.texture in > javascript, but it's not quite working out, at the moment my code > looks like this: > > var texture = new JitterObject("jit.gl.texture", "test"); > texture.name = "cloud"; > texture.file = "cloud_1.tga"; > > What am I doing wrong? >