Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class NVTransformFeedback2

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.system.*

Native bindings to the NV_transform_feedback2 extension.

The NV_transform_feedback and EXT_transform_feedback extensions allow applications to capture primitives to one or more buffer objects when transformed by the GL. This extension provides a few additional capabilities to these extensions, making transform feedback mode more useful.

First, it provides transform feedback objects encapsulating transform feedback-related state, allowing applications to replace the entire transform feedback configuration in a single bind call. Second, it provides the ability to pause and resume transform feedback operations. When transform feedback is paused, applications may render without transform feedback or may use transform feedback with different state and a different transform feedback object. When transform feedback is resumed, additional primitives are captured and appended to previously captured primitives for the object.

Additionally, this extension provides the ability to draw primitives captured in transform feedback mode without querying the captured primitive count. The command DrawTransformFeedbackNV() is equivalent to glDrawArrays(<mode>, 0, <count>), where count is the number of vertices captured to buffer objects during the last transform feedback capture operation on the transform feedback object used. This draw operation only provides a vertex count -- it does not automatically set up vertex array state or vertex buffer object bindings, which must be done separately by the application.

Requires OpenGL 1.5 and NV_transform_feedback or EXT_transform_feedback.

Field Summary

Modifier and TypeField and Description
public static final int
GL_TRANSFORM_FEEDBACK_BINDING_NV

Accepted by the pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.

public static final int
GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV

Accepted by the pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.

public static final int
GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV

Accepted by the pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.

public static final int
GL_TRANSFORM_FEEDBACK_NV

Accepted by the target parameter of BindTransformFeedbackNV.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static native void
glBindTransformFeedbackNV(int target, int id)

public static void
public static void
public static void
public static native void
glDrawTransformFeedbackNV(int mode, int id)

public static void
public static int
public static void
public static native boolean
public static native void
public static native void
public static native void
public static native void
nglGenTransformFeedbacksNV(int n, long ids)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_TRANSFORM_FEEDBACK_BINDING_NVback to summary
public static final int GL_TRANSFORM_FEEDBACK_BINDING_NV

Accepted by the pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.

GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NVback to summary
public static final int GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV

Accepted by the pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.

GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NVback to summary
public static final int GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV

Accepted by the pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.

GL_TRANSFORM_FEEDBACK_NVback to summary
public static final int GL_TRANSFORM_FEEDBACK_NV

Accepted by the target parameter of BindTransformFeedbackNV.

Constructor Detail

NVTransformFeedback2back to summary
protected NVTransformFeedback2()

Method Detail

glBindTransformFeedbackNVback to summary
public static native void glBindTransformFeedbackNV(int target, int id)
glDeleteTransformFeedbacksNVback to summary
public static void glDeleteTransformFeedbacksNV(IntBuffer ids)
glDeleteTransformFeedbacksNVback to summary
public static void glDeleteTransformFeedbacksNV(int id)
glDeleteTransformFeedbacksNVback to summary
public static void glDeleteTransformFeedbacksNV(int[] ids)

Array version of: DeleteTransformFeedbacksNV

glDrawTransformFeedbackNVback to summary
public static native void glDrawTransformFeedbackNV(int mode, int id)
glGenTransformFeedbacksNVback to summary
public static void glGenTransformFeedbacksNV(IntBuffer ids)
glGenTransformFeedbacksNVback to summary
public static int glGenTransformFeedbacksNV()
Annotations
@NativeType:void
glGenTransformFeedbacksNVback to summary
public static void glGenTransformFeedbacksNV(int[] ids)

Array version of: GenTransformFeedbacksNV

glIsTransformFeedbackNVback to summary
public static native boolean glIsTransformFeedbackNV(int id)
Annotations
@NativeType:GLboolean
glPauseTransformFeedbackNVback to summary
public static native void glPauseTransformFeedbackNV()
glResumeTransformFeedbackNVback to summary
public static native void glResumeTransformFeedbackNV()
nglDeleteTransformFeedbacksNVback to summary
public static native void nglDeleteTransformFeedbacksNV(int n, long ids)
nglGenTransformFeedbacksNVback to summary
public static native void nglGenTransformFeedbacksNV(int n, long ids)