Package com.banuba.sdk.internal.gl
Class GLFramePixelBufferRenderer
java.lang.Object
com.banuba.sdk.internal.gl.GLFrameSurfaceHandler
com.banuba.sdk.internal.gl.GLFramePixelBufferRenderer
- All Implemented Interfaces:
IOrientable
,Closeable
,AutoCloseable
Helps draw a FramePixelBuffer with any format.
IMPORTANT:
For this class to work, you need to initialize OpenGL, create a context, create an instance of
this class in the OpenGL context.
And before calling the draw(...) function, you need to initialize the viewport. And after
drawing, you need to call swapBuffers() your surface.
-
Field Summary
Fields inherited from class com.banuba.sdk.internal.gl.GLFrameSurfaceHandler
SIMPLE_VERTEX_SHADER_PROGRAM
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
draw
(FramePixelBuffer pb) Draw a FramePixelBuffer to user defined viewportMethods inherited from class com.banuba.sdk.internal.gl.GLFrameSurfaceHandler
drawSurface, setOrientation
-
Constructor Details
-
GLFramePixelBufferRenderer
public GLFramePixelBufferRenderer()
-
-
Method Details
-
draw
Draw a FramePixelBuffer to user defined viewport -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classGLFrameSurfaceHandler
-