This may be a stupid question, i am not able to get a rotating 3d cube render with transparent background to see the underlying ‘android:theme="@style/SplashScreen"’ i have made
i am using the SDLActivity.java and jni
in java part of the source file i have done ‘getHolder().setFormat(PixelFormat.RGBA_8888);’ to get an Surface with alpha channel
in jni c source code i am doing this:
SDL_CreateRGBSurface -> 32bit
glClearColor(0.0f, 0.0f, 0.0f, 0.0f); -> i have tried both, 1.0f and 0.0f to clear the background with the alpha channel -> it stays always black ( cube renders perfectly )
my question is, do i have to create a window and surface in jni, thought it’s already created in SDLActivity and is this what i was trying technicaly possible ? I mean render an 3d surface on top of an 2d surface with transparent background ?