I'm trying to create alternative place to GLSurfaceView
where to draw openGL stuff because I want to get that color transparency.
However when I run this function
int[] numConfigs = new int[1];
android.opengl.EGLConfig[] configs = new android.opengl.EGLConfig[1];
int[] attribList = {
EGL14.EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL14.EGL_RED_SIZE, 8,
EGL14.EGL_GREEN_SIZE, 8,
EGL14.EGL_BLUE_SIZE, 8,
EGL14.EGL_ALPHA_SIZE, 8,
EGL14.EGL_DEPTH_SIZE, 16,
//if this part about transparency is removed between comments
EGL14.EGL_TRANSPARENT_TYPE,EGL14.EGL_TRANSPARENT_RGB,
EGL14.EGL_TRANSPARENT_RED_VALUE,8,
EGL14.EGL_TRANSPARENT_GREEN_VALUE,8,
EGL14.EGL_TRANSPARENT_BLUE_VALUE,8,
//everything works fine
EGL14.EGL_NONE
};
EGL14.eglChooseConfig(mEglDisplay, attribList, 0, configs, 0, 1, numConfigs, 0)
numConfigs[0]
is always 0 so there are no matching frame buffer configurations that I can use and I can't continue to do anything except remove transparency stuff from attribList[]
. Here is all the options avaialable for attribute list.
Any help how to fix this or work around this would be appreciated.