Ejemplo n.º 1
0
  public void render3D(int dfps) {
    player.lookThrough();
    //		camera.lookThrough();

    player.render();

    map.render(camera.getLocation(), dfps);

    GL.setLightLocation(GL.LIGHT0, player.getLocation());
    //		GL.setLightLocation(GL.LIGHT1, new Point(-2, 2, 4));
    //		GL.setLightLocation(player.getX() + player.getCenterX(), player.getY() +
    // player.getCenterY(), player.getZ() + player.getCenterZ());
    //		if (pic)
    //		{
    //			pic = false;
    //			GL.endScreenCapture();
    //		}
    //		if (KeyboardInput.isKeyDown(KeyboardInput.KEY_H))
    //		{
    //			pic     = true;
    //
    //			int id  = GL.beginScreenCapture();
    //
    //			texture = new Texture(id);
    //		}
  }