com.badlogic.gdx.backends.android.surfaceview
Class FixedResolutionStrategy
java.lang.Object
com.badlogic.gdx.backends.android.surfaceview.FixedResolutionStrategy
- All Implemented Interfaces:
- ResolutionStrategy
public class FixedResolutionStrategy
- extends Object
- implements ResolutionStrategy
This ResolutionStrategy will place the GLSurfaceView with the given height and width in the center the screen.
- Author:
- christoph widulle
FixedResolutionStrategy
public FixedResolutionStrategy(int width,
int height)
calcMeasures
public ResolutionStrategy.MeasuredDimension calcMeasures(int widthMeasureSpec,
int heightMeasureSpec)
- Specified by:
calcMeasures in interface ResolutionStrategy
Copyright © 2014. All Rights Reserved.