本文整理汇总了Java中org.andengine.engine.options.resolutionpolicy.IResolutionPolicy类的典型用法代码示例。如果您正苦于以下问题:Java IResolutionPolicy类的具体用法?Java IResolutionPolicy怎么用?Java IResolutionPolicy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IResolutionPolicy类属于org.andengine.engine.options.resolutionpolicy包,在下文中一共展示了IResolutionPolicy类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onCreateEngineOptions
import org.andengine.engine.options.resolutionpolicy.IResolutionPolicy; //导入依赖的package包/类
@Override
public EngineOptions onCreateEngineOptions() {
mCamera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);
IResolutionPolicy resolutionPolicy =
new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT);
return new EngineOptions(true,
ScreenOrientation.LANDSCAPE_FIXED,
resolutionPolicy,
mCamera);
}
开发者ID:Phonbopit,项目名称:30-android-libraries-in-30-days,代码行数:12,代码来源:AndEngineActivity.java
示例2: onCreateEngineOptions
import org.andengine.engine.options.resolutionpolicy.IResolutionPolicy; //导入依赖的package包/类
@Override
public EngineOptions onCreateEngineOptions() {
prefs = PreferenceManager.getDefaultSharedPreferences(this);
camera = new FollowCamera(0, 0, Constants.CW, Constants.CH);
IResolutionPolicy resolutionPolicy = new FillResolutionPolicy();
EngineOptions engineOptions = new EngineOptions(true,
ScreenOrientation.PORTRAIT_FIXED, resolutionPolicy, camera);
engineOptions.getAudioOptions().setNeedsMusic(true).setNeedsSound(true);
engineOptions.setWakeLockOptions(WakeLockOptions.SCREEN_ON);
return engineOptions;
}
开发者ID:sm4,项目名称:FlyingDandelion,代码行数:13,代码来源:GameActivity.java
示例3: EngineOptions
import org.andengine.engine.options.resolutionpolicy.IResolutionPolicy; //导入依赖的package包/类
public EngineOptions(final boolean pFullscreen, final ScreenOrientation pScreenOrientation, final IResolutionPolicy pResolutionPolicy, final Camera pCamera) {
this.mFullscreen = pFullscreen;
this.mScreenOrientation = pScreenOrientation;
this.mResolutionPolicy = pResolutionPolicy;
this.mCamera = pCamera;
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:7,代码来源:EngineOptions.java
示例4: getResolutionPolicy
import org.andengine.engine.options.resolutionpolicy.IResolutionPolicy; //导入依赖的package包/类
public IResolutionPolicy getResolutionPolicy() {
return this.mResolutionPolicy;
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:4,代码来源:EngineOptions.java
注:本文中的org.andengine.engine.options.resolutionpolicy.IResolutionPolicy类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论