Interface QuadPipeline

    • Method Detail

      • addQuad

        void addQuad​(com.jogamp.opengl.GL gl,
                     Quad quad)
        Adds a quad to this QuadPipeline.
        Parameters:
        gl - Current OpenGL context
        quad - Quad to add to pipeline
        Throws:
        NullPointerException - if context or quad is null
        com.jogamp.opengl.GLException - if context is unexpected version
      • beginRendering

        void beginRendering​(com.jogamp.opengl.GL gl)
        Starts a render cycle with this QuadPipeline.
        Parameters:
        gl - Current OpenGL context
        Throws:
        NullPointerException - if context is null
        com.jogamp.opengl.GLException - if context is unexpected version
      • dispose

        void dispose​(com.jogamp.opengl.GL gl)
        Frees resources used by this QuadPipeline.
        Parameters:
        gl - Current OpenGL context
        Throws:
        NullPointerException - if context is null
        com.jogamp.opengl.GLException - if context is unexpected version
      • endRendering

        void endRendering​(com.jogamp.opengl.GL gl)
        Finishes a render cycle with this QuadPipeline.
        Parameters:
        gl - Current OpenGL context
        Throws:
        NullPointerException - if context is null
        com.jogamp.opengl.GLException - if context is unexpected version
      • flush

        void flush​(com.jogamp.opengl.GL gl)
        Draws all vertices in this QuadPipeline.
        Parameters:
        gl - Current OpenGL context
        Throws:
        NullPointerException - if context is null
        com.jogamp.opengl.GLException - if context is unexpected version
      • getSize

        int getSize()
        Returns number of quads in this QuadPipeline.
        Returns:
        Number of quads in this pipeline, not negative
      • isEmpty

        boolean isEmpty()
        Checks if there aren't any quads in this QuadPipeline.
        Returns:
        True if there aren't any quads in this pipeline