com.serenegiant.glutils.EGLBase Java Examples

The following examples show how to use com.serenegiant.glutils.EGLBase. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UVCCameraTextureView.java    From AndroidUSBCamera with Apache License 2.0 5 votes vote down vote up
private final void init() {
	if (DEBUG) Log.v(TAG, "RenderThread#init:");
	// create EGLContext for this thread
          mEgl = EGLBase.createFrom(null, false, false);
  		mEglSurface = mEgl.createFromSurface(mSurface);
  		mEglSurface.makeCurrent();
  		// create drawing object
  		mDrawer = new GLDrawer2D(true);
}
 
Example #2
Source File: MediaVideoEncoder.java    From AndroidUSBCamera with Apache License 2.0 4 votes vote down vote up
public void setEglContext(final EGLBase.IContext sharedContext, final int tex_id) {
	mRenderHandler.setEglContext(sharedContext, tex_id, mSurface, true);
}
 
Example #3
Source File: Distributor.java    From libcommon with Apache License 2.0 4 votes vote down vote up
@Override
public EGLBase getEgl() {
	return mGLContext.getEgl();
}
 
Example #4
Source File: Distributor.java    From libcommon with Apache License 2.0 4 votes vote down vote up
@Override
public EGLBase.IContext getContext() {
	return mGLContext.getContext();
}
 
Example #5
Source File: SurfaceDrawable.java    From libcommon with Apache License 2.0 4 votes vote down vote up
protected EGLBase getEgl() {
	return mEglTask.getEgl();
}
 
Example #6
Source File: SurfaceDrawable.java    From libcommon with Apache License 2.0 4 votes vote down vote up
protected EGLBase.IContext getContext() {
	return mEglTask.getContext();
}
 
Example #7
Source File: MediaScreenEncoder.java    From ScreenRecordingSample with Apache License 2.0 4 votes vote down vote up
public DrawTask(final EGLBase.IContext sharedContext, final int flags) {
	super(sharedContext, flags);
}