Class GLUTessellatorSupport.CollectPrimitivesCallback

  • All Implemented Interfaces:
    com.jogamp.opengl.glu.GLUtessellatorCallback
    Enclosing class:
    GLUTessellatorSupport

    public static class GLUTessellatorSupport.CollectPrimitivesCallback
    extends com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
    Provides the callback class used to capture triangle and line primitive indices determined by the tessellator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void attach​(com.jogamp.opengl.glu.GLUtessellator tessellator)  
      void begin​(int type)  
      void edgeFlag​(boolean flag)  
      void end()  
      void error​(int errno)  
      int getError()  
      java.nio.IntBuffer getLineIndices()  
      java.nio.IntBuffer getTriangleIndices()  
      void reset()  
      void vertex​(java.lang.Object vertexData)  
      • Methods inherited from class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter

        beginData, combine, combineData, edgeFlagData, endData, errorData, vertexData
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • triangles

        protected java.util.List<java.lang.Integer> triangles
      • lines

        protected java.util.List<java.lang.Integer> lines
      • triangleBuffer

        protected java.nio.IntBuffer triangleBuffer
      • lineBuffer

        protected java.nio.IntBuffer lineBuffer
      • error

        protected int error
      • index

        protected int index
      • edgeFlags

        protected boolean[] edgeFlags
      • edgeFlag

        protected boolean edgeFlag
    • Constructor Detail

      • CollectPrimitivesCallback

        public CollectPrimitivesCallback()
    • Method Detail

      • getTriangleIndices

        public java.nio.IntBuffer getTriangleIndices()
      • getLineIndices

        public java.nio.IntBuffer getLineIndices()
      • getError

        public int getError()
      • attach

        public void attach​(com.jogamp.opengl.glu.GLUtessellator tessellator)
      • reset

        public void reset()
      • begin

        public void begin​(int type)
        Specified by:
        begin in interface com.jogamp.opengl.glu.GLUtessellatorCallback
        Overrides:
        begin in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
      • end

        public void end()
        Specified by:
        end in interface com.jogamp.opengl.glu.GLUtessellatorCallback
        Overrides:
        end in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
      • vertex

        public void vertex​(java.lang.Object vertexData)
        Specified by:
        vertex in interface com.jogamp.opengl.glu.GLUtessellatorCallback
        Overrides:
        vertex in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
      • edgeFlag

        public void edgeFlag​(boolean flag)
        Specified by:
        edgeFlag in interface com.jogamp.opengl.glu.GLUtessellatorCallback
        Overrides:
        edgeFlag in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
      • error

        public void error​(int errno)
        Specified by:
        error in interface com.jogamp.opengl.glu.GLUtessellatorCallback
        Overrides:
        error in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter