Until now I realized that the viewport is a rectangle inside the camera and represents a portion of the camera that I want to see (correct me if I'm wrong). but I can not explain this:
I have this camera:
camera = new OrthographicCamera(10,10);
camera.translate(w/2, h/2);
camera.update();
If the camera' size is 10x10 Why can I set a viewport larger? for example:
camera.viewportHeight=Gdx.graphics.getHeight();
camera.viewportWidth=Gdx.graphics.getWidth();
camera.update();
Thank you for your time