I'm learning libgdx and don't understand the purpose of parameters passed to flip(boolean x, boolean y). For example, I have code like this:
texture = new Texture(Gdx.files.internal("data/texture.png")); textureRegion = new TextureRegion(texture, 0, 0, 20, 20); textureRegion.flip(false, false); My TextureRegion is flipped when both parameters are true and not flipped when they are false. But why does it need two parameters when it could have only one? The documentation says nothing about that.



