public class ScalingViewport extends Viewport
Constructor and Description |
---|
ScalingViewport(Scaling scaling,
boolean powerOfTwo,
float worldWidth,
float worldHeight) |
Modifier and Type | Method and Description |
---|---|
boolean |
isPowerOfTwo() |
void |
onResize(int width,
int height) |
void |
setPowerOfTwo(boolean powerOfTwo) |
apply, getHeight, getInvScaleX, getInvScaleY, getScaleX, getScaleY, getWidth, getX, getY, setBounds, toScreenCoordinates, toScreenCoordinates, toWorldCoordinates, toWorldCoordinates, unapply
public ScalingViewport(Scaling scaling, boolean powerOfTwo, float worldWidth, float worldHeight)