Class NVTransformFeedback


  • public class NVTransformFeedback
    extends java.lang.Object
    Native bindings to the NV_transform_feedback extension.

    This extension provides a new mode to the GL, called transform feedback, which records vertex attributes of the primitives processed by the GL. The selected attributes are written into buffer objects, and can be written with each attribute in a separate buffer object or with all attributes interleaved into a single buffer object. If a geometry program or shader is active, the primitives recorded are those emitted by the geometry program. Otherwise, transform feedback captures primitives whose vertex are transformed by a vertex program or shader, or by fixed-function vertex processing. In either case, the primitives captured are those generated prior to clipping. Transform feedback mode is capable of capturing transformed vertex data generated by fixed-function vertex processing, outputs from assembly vertex or geometry programs, or varying variables emitted from GLSL vertex or geometry shaders.

    The vertex data recorded in transform feedback mode is stored into buffer objects as an array of vertex attributes. The regular representation and the use of buffer objects allows the recorded data to be processed directly by the GL without requiring CPU intervention to copy data. In particular, transform feedback data can be used for vertex arrays (via vertex buffer objects), as the source for pixel data (via pixel buffer objects), as program constant data (via the NV_parameter_buffer_object or EXT_bindable_uniform extension), or via any other extension that makes use of buffer objects.

    This extension introduces new query object support to allow transform feedback mode to operate asynchronously. Query objects allow applications to determine when transform feedback results are complete, as well as the number of primitives processed and written back to buffer objects while in transform feedback mode. This extension also provides a new rasterizer discard enable, which allows applications to use transform feedback to capture vertex attributes without rendering anything.

    Requires OpenGL 1.5.

    • Method Detail

      • glBeginTransformFeedbackNV

        public static void glBeginTransformFeedbackNV​(int primitiveMode)
      • glEndTransformFeedbackNV

        public static void glEndTransformFeedbackNV()
      • nglTransformFeedbackAttribsNV

        public static void nglTransformFeedbackAttribsNV​(int count,
                                                         long attribs,
                                                         int bufferMode)
      • glTransformFeedbackAttribsNV

        public static void glTransformFeedbackAttribsNV​(java.nio.IntBuffer attribs,
                                                        int bufferMode)
      • glBindBufferRangeNV

        public static void glBindBufferRangeNV​(int target,
                                               int index,
                                               int buffer,
                                               long offset,
                                               long size)
      • glBindBufferOffsetNV

        public static void glBindBufferOffsetNV​(int target,
                                                int index,
                                                int buffer,
                                                long offset)
      • glBindBufferBaseNV

        public static void glBindBufferBaseNV​(int target,
                                              int index,
                                              int buffer)
      • nglTransformFeedbackVaryingsNV

        public static void nglTransformFeedbackVaryingsNV​(int program,
                                                          int count,
                                                          long locations,
                                                          int bufferMode)
      • glTransformFeedbackVaryingsNV

        public static void glTransformFeedbackVaryingsNV​(int program,
                                                         java.nio.IntBuffer locations,
                                                         int bufferMode)
      • nglActiveVaryingNV

        public static void nglActiveVaryingNV​(int program,
                                              long name)
      • glActiveVaryingNV

        public static void glActiveVaryingNV​(int program,
                                             java.nio.ByteBuffer name)
      • glActiveVaryingNV

        public static void glActiveVaryingNV​(int program,
                                             java.lang.CharSequence name)
      • nglGetVaryingLocationNV

        public static int nglGetVaryingLocationNV​(int program,
                                                  long name)
      • glGetVaryingLocationNV

        public static int glGetVaryingLocationNV​(int program,
                                                 java.nio.ByteBuffer name)
      • glGetVaryingLocationNV

        public static int glGetVaryingLocationNV​(int program,
                                                 java.lang.CharSequence name)
      • nglGetActiveVaryingNV

        public static void nglGetActiveVaryingNV​(int program,
                                                 int index,
                                                 int bufSize,
                                                 long length,
                                                 long size,
                                                 long type,
                                                 long name)
      • glGetActiveVaryingNV

        public static void glGetActiveVaryingNV​(int program,
                                                int index,
                                                @Nullable
                                                java.nio.IntBuffer length,
                                                java.nio.IntBuffer size,
                                                java.nio.IntBuffer type,
                                                java.nio.ByteBuffer name)
      • nglGetTransformFeedbackVaryingNV

        public static void nglGetTransformFeedbackVaryingNV​(int program,
                                                            int index,
                                                            long location)
      • glGetTransformFeedbackVaryingNV

        public static void glGetTransformFeedbackVaryingNV​(int program,
                                                           int index,
                                                           java.nio.IntBuffer location)
      • glGetTransformFeedbackVaryingNV

        public static int glGetTransformFeedbackVaryingNV​(int program,
                                                          int index)
      • nglTransformFeedbackStreamAttribsNV

        public static void nglTransformFeedbackStreamAttribsNV​(int count,
                                                               long attribs,
                                                               int nbuffers,
                                                               long bufstreams,
                                                               int bufferMode)
      • glTransformFeedbackStreamAttribsNV

        public static void glTransformFeedbackStreamAttribsNV​(java.nio.IntBuffer attribs,
                                                              java.nio.IntBuffer bufstreams,
                                                              int bufferMode)
      • glTransformFeedbackAttribsNV

        public static void glTransformFeedbackAttribsNV​(int[] attribs,
                                                        int bufferMode)
        Array version of: TransformFeedbackAttribsNV
      • glTransformFeedbackVaryingsNV

        public static void glTransformFeedbackVaryingsNV​(int program,
                                                         int[] locations,
                                                         int bufferMode)
        Array version of: TransformFeedbackVaryingsNV
      • glGetActiveVaryingNV

        public static void glGetActiveVaryingNV​(int program,
                                                int index,
                                                @Nullable
                                                int[] length,
                                                int[] size,
                                                int[] type,
                                                java.nio.ByteBuffer name)
        Array version of: GetActiveVaryingNV
      • glGetTransformFeedbackVaryingNV

        public static void glGetTransformFeedbackVaryingNV​(int program,
                                                           int index,
                                                           int[] location)
      • glTransformFeedbackStreamAttribsNV

        public static void glTransformFeedbackStreamAttribsNV​(int[] attribs,
                                                              int[] bufstreams,
                                                              int bufferMode)