Class QuadPipelineGL10

    • Constructor Detail

    • Method Detail

      • addQuad

        public final void addQuad​(com.jogamp.opengl.GL gl,
                                  Quad quad)
        Description copied from interface: QuadPipeline
        Adds a quad to this QuadPipeline.
        Specified by:
        addQuad in interface QuadPipeline
        Parameters:
        gl - Current OpenGL context
        quad - Quad to add to pipeline
      • beginRendering

        public void beginRendering​(com.jogamp.opengl.GL gl)
        Description copied from interface: QuadPipeline
        Starts a render cycle with this QuadPipeline.
        Specified by:
        beginRendering in interface QuadPipeline
        Parameters:
        gl - Current OpenGL context
      • dispose

        public void dispose​(com.jogamp.opengl.GL gl)
        Description copied from interface: QuadPipeline
        Frees resources used by this QuadPipeline.
        Specified by:
        dispose in interface QuadPipeline
        Parameters:
        gl - Current OpenGL context
      • endRendering

        public void endRendering​(com.jogamp.opengl.GL gl)
        Description copied from interface: QuadPipeline
        Finishes a render cycle with this QuadPipeline.
        Specified by:
        endRendering in interface QuadPipeline
        Parameters:
        gl - Current OpenGL context
      • flush

        public final void flush​(com.jogamp.opengl.GL gl)
        Description copied from interface: QuadPipeline
        Draws all vertices in this QuadPipeline.
        Specified by:
        flush in interface QuadPipeline
        Parameters:
        gl - Current OpenGL context
      • getSize

        public final int getSize()
        Description copied from interface: QuadPipeline
        Returns number of quads in this QuadPipeline.
        Specified by:
        getSize in interface QuadPipeline
        Returns:
        Number of quads in this pipeline, not negative
      • isEmpty

        public final boolean isEmpty()
        Description copied from interface: QuadPipeline
        Checks if there aren't any quads in this QuadPipeline.
        Specified by:
        isEmpty in interface QuadPipeline
        Returns:
        True if there aren't any quads in this pipeline
      • getSizeInBytes

        public final int getSizeInBytes()
        Returns size of vertices in the pipeline in bytes.
      • getSizeInPrimitives

        public final int getSizeInPrimitives()
        Returns number of primitives in the pipeline.
      • getSizeInVertices

        public final int getSizeInVertices()
        Returns number of vertices in the pipeline.