AndEngine Applying Transparancy to AndEngine View

十年热恋 提交于 2019-12-11 04:38:34

问题


I am developing a game with the help of andEngine in Android.
I have defined background in layout xml and trying to put some component on the screen using AndEngine.
But the AndEngine captured area is not transparent. All the background captured by AndEngine goes black.
I am using org.andengine.opengl.view.RenderSurfaceView in xml and LayoutGameActivity in code.

Thanks in advance for the time you will spend trying to help me.


回答1:


Have a look at BaseAugmentedRealityGameActivity class from the AndEngineAugmentedRealityExtension. It does the proper surface setup for a transparent background.

As a working example, try the AugmentedRealityExample of the AndEngineExamples , which makes use of this.



来源:https://stackoverflow.com/questions/12862505/andengine-applying-transparancy-to-andengine-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!