Usebrls::Application::getTheme().addColor("brls/clear", nvgRGBA(0, 0, 0, 0)); to set the Borealis background to transparent.
Use mSurface.getHolder().setFormat(PixelFormat.RGBA_8888); in the onCreate function of the Android Activity to set the SurfaceView bound to Borealis to allow transparency.
Now you can freely control what can be drawn behind Borealis. In my own application, I use this method to bind ffmpeg to another SurfaceView and place it behind Borealis, instead of directly using OpenGL to draw on Borealis. This reduces copying and greatly improves performance when using hwdec.
Used for Android development:
brls::Application::getTheme().addColor("brls/clear", nvgRGBA(0, 0, 0, 0));
to set the Borealis background to transparent.mSurface.getHolder().setFormat(PixelFormat.RGBA_8888);
in the onCreate function of the Android Activity to set the SurfaceView bound to Borealis to allow transparency.Now you can freely control what can be drawn behind Borealis. In my own application, I use this method to bind ffmpeg to another SurfaceView and place it behind Borealis, instead of directly using OpenGL to draw on Borealis. This reduces copying and greatly improves performance when using hwdec.