Hi Hugh,
Thanks a lot for your help!
Yes finally I get the camera preview displaying under the NME MainView according to your guideline, it's really cool! This will give NME the capability writing fantastic camera-based apps!
Here's my (tiny) modification to make this happen:
1. In MainView.ctor, add "setEGLConfigChooser(8, 8, 8, 8, 16, 0);" before setRenderer(), I don't know what is stencil, but this just works
2. In OGLContext.Clear, change the alpha component from 1.0 to 0.0
3. In MainActivity or GameActivity, use addContentView to add a normal camera preview SurfaceView to the activity.
BTW, I guess a similar approach should be also working on iOS target, isn't it?
Regards,
Rocks
在 2012年12月17日星期一UTC+8下午12时49分48秒,Hugh写道: