I am capturing the screen continuously using
mVirtualDisplay = mMediaProjection.createVirtualDisplay("ScreenCapture", mSurfaceView.getWidth(), mSurfaceView.getHeight(), mScreenDensity, DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR,mSurface, null, null);
I want to pass this mSurface as a texture to NDK (OpenGL). I could not find away to do this. Your help would be appreciated!
mVirtualDisplay = mMediaProjection.createVirtualDisplay("ScreenCapture", mSurfaceView.getWidth(), mSurfaceView.getHeight(), mScreenDensity, DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR,mSurface, null, null);
I want to pass this mSurface as a texture to NDK (OpenGL). I could not find away to do this. Your help would be appreciated!