How to load a texture programmatically (jit.gl.texture)

wijesijp's icon

I have written a java external that draw some objects in a scene. I want to set a textures for the objects.
I can create a texture object like     
texture = new JitterObject("jit.gl.texture");
but I don't know how to load the texture file or how to use that texture on a object
can you help?

wijesijp's icon

Guys I would really appreciate any help on this matter
I can't be the first person trying this ....

Dg's icon

Hi wijesijp,

Why don't you load the texture outside of you java external, in a [jit.gl.texture] located in your patcher?
It works with javascript.

Dg's icon

jitter JS tutorial 45 shows how to load a file in qtmovie.
I think it is probably similar in java with textures ...