• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java FillResolutionPolicy类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.andengine.engine.options.resolutionpolicy.FillResolutionPolicy的典型用法代码示例。如果您正苦于以下问题:Java FillResolutionPolicy类的具体用法?Java FillResolutionPolicy怎么用?Java FillResolutionPolicy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



FillResolutionPolicy类属于org.andengine.engine.options.resolutionpolicy包,在下文中一共展示了FillResolutionPolicy类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: onCreateEngineOptions

import org.andengine.engine.options.resolutionpolicy.FillResolutionPolicy; //导入依赖的package包/类
@Override
	public EngineOptions onCreateEngineOptions() {
		Log.d("debug", "masuk activity PlayScene");
		activity = MainGameActivity.getSharedInstance();
		
		//get the sensor service
		mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);
		//get the accelerometer sensor
		mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
//		mAcceleration = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION);
		
		EngineOptions engineOptions = new EngineOptions(true,
				ScreenOrientation.LANDSCAPE_FIXED, new FillResolutionPolicy(), activity.mCamera);
		
		final ConfigChooserOptions configChooserOptions = engineOptions.getRenderOptions().getConfigChooserOptions();
		configChooserOptions.setRequestedRedSize(8);
		configChooserOptions.setRequestedGreenSize(8);
		configChooserOptions.setRequestedBlueSize(8);
		configChooserOptions.setRequestedAlphaSize(8);
		configChooserOptions.setRequestedDepthSize(16);
		
		return engineOptions;
	}
 
开发者ID:erisazani,项目名称:MissionInsectible,代码行数:24,代码来源:PlayScene.java


示例2: onCreateEngineOptions

import org.andengine.engine.options.resolutionpolicy.FillResolutionPolicy; //导入依赖的package包/类
@Override
public EngineOptions onCreateEngineOptions() {
    Logger.log(TAG, "onCreateEngineOptions");
    Camera camera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);
    EngineOptions engineOptions = new EngineOptions(true, ScreenOrientation.LANDSCAPE_SENSOR,
            new FillResolutionPolicy(), camera);
    engineOptions.getAudioOptions().setNeedsSound(true);
    return engineOptions;
}
 
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:10,代码来源:AbstractGameActivity.java


示例3: onCreateEngineOptions

import org.andengine.engine.options.resolutionpolicy.FillResolutionPolicy; //导入依赖的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


示例4: onCreateEngineOptions

import org.andengine.engine.options.resolutionpolicy.FillResolutionPolicy; //导入依赖的package包/类
@Override
public EngineOptions onCreateEngineOptions() {
	Log.d("debug", "masuk activity MainGameActivity");
	// TODO Auto-generated method stub
	instance = this;
	mCamera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);		
	// engineOptions = new EngineOptions(true,
	// 		ScreenOrientation.LANDSCAPE_FIXED, new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT), mCamera);
	final EngineOptions engineOptions = new EngineOptions(true,
			ScreenOrientation.LANDSCAPE_FIXED, new FillResolutionPolicy(), mCamera);
	engineOptions.getAudioOptions().setNeedsSound(true);
	engineOptions.getAudioOptions().setNeedsMusic(true);
	return engineOptions;
}
 
开发者ID:erisazani,项目名称:MissionInsectible,代码行数:15,代码来源:MainGameActivity.java


示例5: onCreateEngineOptions

import org.andengine.engine.options.resolutionpolicy.FillResolutionPolicy; //导入依赖的package包/类
@Override
public EngineOptions onCreateEngineOptions() 
{
	camera = new BoundCamera(0, 0, 800, 480);
	EngineOptions engineOptions = new EngineOptions(true, ScreenOrientation.LANDSCAPE_FIXED, new FillResolutionPolicy(), camera);
	engineOptions.getAudioOptions().setNeedsMusic(true).setNeedsSound(true);
	engineOptions.setWakeLockOptions(WakeLockOptions.SCREEN_ON);
	 
	return engineOptions;
}
 
开发者ID:LHBDev,项目名称:MoonMiner,代码行数:11,代码来源:MainActivity.java



注:本文中的org.andengine.engine.options.resolutionpolicy.FillResolutionPolicy类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java MasterBatchCoordinator类代码示例发布时间:2022-05-22
下一篇:
Java MessageOut类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap