com.badlogic.gdx.backends.android.surfaceview
Class FixedResolutionStrategy

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.badlogic.gdx.backends.android.surfaceview.ResolutionStrategy
ResolutionStrategy.MeasuredDimension
 
Constructor Summary
FixedResolutionStrategy(int width, int height)
           
 
Method Summary
 ResolutionStrategy.MeasuredDimension calcMeasures(int widthMeasureSpec, int heightMeasureSpec)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedResolutionStrategy

public FixedResolutionStrategy(int width,
                               int height)
Method Detail

calcMeasures

public ResolutionStrategy.MeasuredDimension calcMeasures(int widthMeasureSpec,
                                                         int heightMeasureSpec)
Specified by:
calcMeasures in interface ResolutionStrategy


Copyright © 2013. All Rights Reserved.