Class GlRenderTarget


  • @RequiresApi(api=17)
    public class GlRenderTarget
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      GlRenderTarget()
      Constructs a new Open GL render target.
    • Constructor Detail

      • GlRenderTarget

        public GlRenderTarget()
        Constructs a new Open GL render target.
        Throws:
        OpenGLException - if the render target could not be created.
    • Method Detail

      • hasValidContext

        public boolean hasValidContext()
        Checks if the current Open GL context is valid.
        Returns:
      • hasValidSurface

        public boolean hasValidSurface()
        Checks if the current Open GL surface is valid.
        Returns:
      • initialize

        public void initialize()
      • release

        public void release()
        Releases the Open GL resource used by this render target.
      • createRenderSurface

        public void createRenderSurface​(java.lang.Object surfaceTexture)
      • swapBuffers

        public void swapBuffers()
      • makeCurrent

        public void makeCurrent()