问题
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