That is cool, thanks. Sorry for the late reply.
How do you like the game, did you pass level 10 ?
How do you like the game, did you pass level 10 ?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
public void onSurfaceChanged(GL10 gl, int w, int h) {
// ...
// world.addObject(cube);
// new code
overlay = new Overlay(world, fb, "texture");
overlay.setNewCoordinates(300, 150, 400, 250);
// ...
}
public void onDrawFrame(GL10 gl) {
// new code
com.threed.jpct.Matrix mat = overlay.getObject3D().getRotationMatrix();
mat.set(1, 0, (float) Math.cos(shearX));
shearX += 0.01f;
// ...
}
// inside some update routine
Matrix mat = overlay.getObject3D().getRotationMatrix();
mat.set(0, 1, shearY);
mat.set(1, 0, shearX);
Page created in 0.031 seconds with 11 queries.