1
Projects / Re: First game: Drop it All
« on: June 18, 2015, 02:26:41 pm »
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.
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;
// ...
}
Hope this helps .
overlay.getObject3D().compile();
the overlay don't appear on screen.// inside some update routine
Matrix mat = overlay.getObject3D().getRotationMatrix();
mat.set(0, 1, shearY);
mat.set(1, 0, shearX);