本文整理匯總了Java中com.badlogic.gdx.utils.Scaling.fill方法的典型用法代碼示例。如果您正苦於以下問題:Java Scaling.fill方法的具體用法?Java Scaling.fill怎麽用?Java Scaling.fill使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.badlogic.gdx.utils.Scaling
的用法示例。
在下文中一共展示了Scaling.fill方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createStage
import com.badlogic.gdx.utils.Scaling; //導入方法依賴的package包/類
public static Stage createStage(float vp_width, float vp_height)
{
Stage stage = new Stage(new ScalingViewport(Scaling.fill, vp_width, vp_height));
stage.getViewport().setCamera(new OrthographicCamera(vp_width, vp_height));
((OrthographicCamera) stage.getCamera()).position.set(((OrthographicCamera) stage.getCamera()).viewportWidth / 2, ((OrthographicCamera) stage.getCamera()).viewportHeight / 2, 0f);
((OrthographicCamera) stage.getCamera()).zoom = 1f;
((OrthographicCamera) stage.getCamera()).update();
return stage;
}
示例2: g
import com.badlogic.gdx.utils.Scaling; //導入方法依賴的package包/類
public g(Skin paramSkin, av paramav, AvatarLayerOption paramAvatarLayerOption)
{
this.a = ((av)an.a(paramav));
this.b = ((AvatarLayerOption)an.a(paramAvatarLayerOption));
az localaz = new az(paramSkin.getDrawable("item-button-selection"), 16762974);
this.d = new Image(null, Scaling.fill, 1);
Table localTable = new Table();
localTable.add(this.d).n().f().g(l.a(8.0F));
this.c = new Image(localaz, Scaling.fill, 1);
Actor[] arrayOfActor = new Actor[2];
arrayOfActor[0] = this.c;
arrayOfActor[1] = localTable;
stack(arrayOfActor).n().f();
a(false);
}
示例3: FillViewport
import com.badlogic.gdx.utils.Scaling; //導入方法依賴的package包/類
/** Creates a new viewport using a new {@link OrthographicCamera}. */
public FillViewport (float worldWidth, float worldHeight) {
super(Scaling.fill, worldWidth, worldHeight);
}