Class NVTransformFeedback2
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 TypeFieldDescriptionstatic final int
Accepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static final int
Accepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static final int
Accepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static final int
Accepted by thetarget
parameter of BindTransformFeedbackNV. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
glBindTransformFeedbackNV
(int target, int id) static void
glDeleteTransformFeedbacksNV
(int id) static void
glDeleteTransformFeedbacksNV
(int[] ids) Array version of:DeleteTransformFeedbacksNV
static void
static void
glDrawTransformFeedbackNV
(int mode, int id) static int
static void
glGenTransformFeedbacksNV
(int[] ids) Array version of:GenTransformFeedbacksNV
static void
static boolean
glIsTransformFeedbackNV
(int id) static void
static void
static void
nglDeleteTransformFeedbacksNV
(int n, long ids) static void
nglGenTransformFeedbacksNV
(int n, long ids)
-
Field Details
-
GL_TRANSFORM_FEEDBACK_NV
public static final int GL_TRANSFORM_FEEDBACK_NVAccepted by thetarget
parameter of BindTransformFeedbackNV.- See Also:
-
GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV
public static final int GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NVAccepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.- See Also:
-
GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV
public static final int GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NVAccepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.- See Also:
-
GL_TRANSFORM_FEEDBACK_BINDING_NV
public static final int GL_TRANSFORM_FEEDBACK_BINDING_NVAccepted by thepname
parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.- See Also:
-
-
Method Details
-
glBindTransformFeedbackNV
public static void glBindTransformFeedbackNV(int target, int id) -
nglDeleteTransformFeedbacksNV
public static void nglDeleteTransformFeedbacksNV(int n, long ids) -
glDeleteTransformFeedbacksNV
-
glDeleteTransformFeedbacksNV
public static void glDeleteTransformFeedbacksNV(int id) -
nglGenTransformFeedbacksNV
public static void nglGenTransformFeedbacksNV(int n, long ids) -
glGenTransformFeedbacksNV
-
glGenTransformFeedbacksNV
public static int glGenTransformFeedbacksNV() -
glIsTransformFeedbackNV
public static boolean glIsTransformFeedbackNV(int id) -
glPauseTransformFeedbackNV
public static void glPauseTransformFeedbackNV() -
glResumeTransformFeedbackNV
public static void glResumeTransformFeedbackNV() -
glDrawTransformFeedbackNV
public static void glDrawTransformFeedbackNV(int mode, int id) -
glDeleteTransformFeedbacksNV
public static void glDeleteTransformFeedbacksNV(int[] ids) Array version of:DeleteTransformFeedbacksNV
-
glGenTransformFeedbacksNV
public static void glGenTransformFeedbacksNV(int[] ids) Array version of:GenTransformFeedbacksNV
-