Textures in java external

Apr 16, 2009 at 11:31am

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?


You must be logged in to reply to this topic.