Hello, openflashers!
I’m trying to create a custom android template where SDLSurface background must be transparent to see another android native view under it. In the NME solution opengl parameter EGL_ALPHA_SIZE is set to 8:
public MainView(Context context,GameActivity inActivity, boolean inTranslucent)
{
...
translucent = inTranslucent;
getHolder().setFormat( translucent ? PixelFormat.TRANSLUCENT : PixelFormat.OPAQUE );
setZOrderMediaOverlay(true);
int alpha = translucent ? 8 : 0;
EGL10 egl = (EGL10)EGLContext.getEGL();
...
int[] attrs = { EGL10.EGL_DEPTH_SIZE, depth,
EGL10.EGL_STENCIL_SIZE, stencil,
EGL10.EGL_ALPHA_SIZE, alpha,
EGL10.EGL_SAMPLE_BUFFERS, 1 /* true */,
EGL10.EGL_SAMPLES, ::WIN_ANTIALIASING::,
EGL10.EGL_RENDERABLE_TYPE, renderType,
EGL10.EGL_NONE };
egl.eglChooseConfig(display, attrs, configs, 1, num_config);
How to implement it in openfl?