Forums > Java

Textures in java external

April 16, 2009 | 1:13 pm

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?


Viewing 1 post (of 1 total)