com.badlogic.gdx.backends.android.surfaceview
Class RatioResolutionStrategy
java.lang.Object
com.badlogic.gdx.backends.android.surfaceview.RatioResolutionStrategy
- All Implemented Interfaces:
- ResolutionStrategy
public class RatioResolutionStrategy
- extends Object
- implements ResolutionStrategy
This ResolutionStrategy will maintain a given aspect ratio and stretch the GLSurfaceView to the maximum available
screen size.
- Author:
- christoph widulle
RatioResolutionStrategy
public RatioResolutionStrategy(float ratio)
RatioResolutionStrategy
public RatioResolutionStrategy(float width,
float height)
calcMeasures
public ResolutionStrategy.MeasuredDimension calcMeasures(int widthMeasureSpec,
int heightMeasureSpec)
- Specified by:
calcMeasures in interface ResolutionStrategy
Copyright © 2014. All Rights Reserved.