-
Notifications
You must be signed in to change notification settings - Fork 24
Transparent Background
Arnaud Guyon edited this page Apr 18, 2017
·
1 revision
Some people asked me how to have a transparent background for the SmartGLView. OpenGL on Android allows to do that with a kind of workaround: you have to put the surface on top of the window. The counterpart is that there is no way to display a standard Android layout on top of the surface (like to do a Hud in a game).
smartGLView.setZOrderOnTop(true);
smartGLView.getSmartGLRenderer().setClearColor(0,0,0,0);