Class GLFramePixelBufferRenderer

  • All Implemented Interfaces:
    IOrientable, java.io.Closeable, java.lang.AutoCloseable

    public class GLFramePixelBufferRenderer
    extends GLFrameSurfaceHandler
    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.
    • Constructor Detail

      • GLFramePixelBufferRenderer

        public GLFramePixelBufferRenderer()
    • Method Detail

      • draw

        public void draw​(FramePixelBuffer pb)
        Draw a FramePixelBuffer to user defined viewport
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class GLFrameSurfaceHandler