ANDROID ANDENGINE - 设置场景背景trasparent [英] ANDROID ANDENGINE -- Set Scene background as trasparent

查看:229
本文介绍了ANDROID ANDENGINE - 设置场景背景trasparent的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始在我的应用程序使用AndEngine。
我已经使用了XML来定义应用程序的基本样式。
我定义中,我还会有一些可拖动的精灵场景。

­I'm starting to use AndEngine in my app. I've used an xml to define the base style of the app. I've defined a scene in which I'll have some draggable sprites.

我已经正确导入XML,但场面上出现的黑色背景,它隐藏在xml显卡最重要的是。我需要设置场景以透明背景。

I've imported correctly the xml but the scene appears on top of that with a black background that hides the xml graphics. I need to set the scene with transparent background.

我怎样才能做到这一点?

How can i do that?

推荐答案

其实你可以做到这一点。

Actually you can do that.

它至少工作的前一段时间有一个摄像头preVIEW之上运行AndEngine。

It was at least working some time ago with AndEngine running on top of a Camera preview.

这确实已经有一段时间我这样做,我没有把它最新的,但这个类应该是对你的兴趣:
<一href=\"http://$c$c.google.com/p/andengineaugmentedrealityextension/source/browse/src/org/anddev/andengine/extension/augmentedreality/BaseAugmentedRealityGameActivity.java\" rel=\"nofollow\">http://$c$c.google.com/p/andengineaugmentedrealityextension/source/browse/src/org/anddev/andengine/extension/augmentedreality/BaseAugmentedRealityGameActivity.java

It has really been a while since I did this and I didn't keep it up to date, but this class should be of interest for you: http://code.google.com/p/andengineaugmentedrealityextension/source/browse/src/org/anddev/andengine/extension/augmentedreality/BaseAugmentedRealityGameActivity.java

这篇关于ANDROID ANDENGINE - 设置场景背景trasparent的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆