Textures in java external
I have written a simple java external that draw some simple objects using jit.gl.sketch.
Now I wanted to set textures for the objects in the scene. How do I do this in the java external?
I have managed to create a texture object like
texture = new JitterObject("jit.gl.texture");
what I don't know is how to get the texture image loaded.
I draw objects like;
sketch.send("cube", new Atom[]{Atom.newAtom(4.0f),Atom.newAtom(4.0f),Atom.newAtom(0.0f)});
now how do I set the texture for this object?