Class CombineContext.TessCallbackAdapter

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

    protected static class CombineContext.TessCallbackAdapter
    extends com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
    Implementation of GLUtessellatorCallback that forwards GLU tessellator callbacks to protected methods on CombineContext.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected CombineContext cc
      The CombineContext that receives forwarded GLU tessellator callbacks.
    • Constructor Summary

      Constructors 
      Constructor Description
      TessCallbackAdapter​(CombineContext cc)
      Creates a new TessCallbackAdapter with a CombineContext that receives GLU tessellator callbacks sent to this instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void begin​(int type)
      Calls CombineContext.tessBegin with the specified type.
      void combine​(double[] coords, java.lang.Object[] vertexData, float[] weight, java.lang.Object[] outData)
      Calls CombineContext.tessCombine with the specified arguments.
      void end()
      Calls CombineContext.tessEnd.
      void error​(int errno)
      Calls CombineContext.tessError with the specified errno.
      void vertex​(java.lang.Object vertexData)
      Calls CombineContext.tessVertex with the specified vertexData.
      • Methods inherited from class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter

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

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

      • cc

        protected CombineContext cc
        The CombineContext that receives forwarded GLU tessellator callbacks.
    • Constructor Detail

      • TessCallbackAdapter

        public TessCallbackAdapter​(CombineContext cc)
        Creates a new TessCallbackAdapter with a CombineContext that receives GLU tessellator callbacks sent to this instance.
        Parameters:
        cc - the CombineContext that receives forwarded GLU tessellator callbacks.
    • Method Detail

      • begin

        public void begin​(int type)
        Calls CombineContext.tessBegin with the specified type.
        Specified by:
        begin in interface com.jogamp.opengl.glu.GLUtessellatorCallback
        Overrides:
        begin in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
        Parameters:
        type - the GL primitive type.
      • vertex

        public void vertex​(java.lang.Object vertexData)
        Calls CombineContext.tessVertex with the specified vertexData.
        Specified by:
        vertex in interface com.jogamp.opengl.glu.GLUtessellatorCallback
        Overrides:
        vertex in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
        Parameters:
        vertexData - the caller specified vertex data.
      • end

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

        public void combine​(double[] coords,
                            java.lang.Object[] vertexData,
                            float[] weight,
                            java.lang.Object[] outData)
        Calls CombineContext.tessCombine with the specified arguments.
        Specified by:
        combine in interface com.jogamp.opengl.glu.GLUtessellatorCallback
        Overrides:
        combine in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
        Parameters:
        coords - A three element array containing the x, y and z coordinates of the new vertex.
        vertexData - The caller specified vertex data of the original vertices.
        weight - The coefficients of the linear combination. These weights sum to 1.
        outData - A one element array that must contain the caller specified data associated with the new vertex after this method returns.
      • error

        public void error​(int errno)
        Calls CombineContext.tessError with the specified errno.
        Specified by:
        error in interface com.jogamp.opengl.glu.GLUtessellatorCallback
        Overrides:
        error in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
        Parameters:
        errno - a GLU enumeration indicating the error.