@Override
public void initialize(ApplicationListener listener, AndroidApplicationConfiguration config){
//Las siguientes dos lines son necesaria para poder añadir markers de la manera que ARToolKit lo maneja
AssetHelper assetHelper = new AssetHelper(getAssets());
assetHelper.cacheAssetFolder(this, "Data");
mainLayout = new FrameLayout(this);
config.r = 8;
config.g = 8;
config.b = 8;
config.a = 8;
//Configuraciones basicas
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
getWindow().setFormat(PixelFormat.TRANSLUCENT);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
gameView = initializeForView(listener, config);
if(graphics.getView() instanceof SurfaceView){
SurfaceView glView = (SurfaceView)graphics.getView();
glView.getHolder().setFormat(PixelFormat.TRANSLUCENT);
}
setContentView(mainLayout);
}
ARLauncher.java 文件源码
java
阅读 39
收藏 0
点赞 0
评论 0
项目:trascendentAR
作者:
评论列表
文章目录