Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class NVTransformFeedback

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

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.

Field Summary

Modifier and TypeField and Description
public static final int
GL_ACTIVE_VARYING_MAX_LENGTH_NV

Accepted by the pname parameter of GetProgramiv.

public static final int
GL_ACTIVE_VARYINGS_NV

Accepted by the pname parameter of GetProgramiv.

public static final int
GL_BACK_PRIMARY_COLOR_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

public static final int
GL_BACK_SECONDARY_COLOR_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

public static final int
GL_CLIP_DISTANCE_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

public static final int
GL_GENERIC_ATTRIB_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

public static final int
GL_INTERLEAVED_ATTRIBS_NV

Accepted by the bufferMode parameter of TransformFeedbackAttribsNV and TransformFeedbackVaryingsNV.

public static final int
GL_LAYER_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

public static final int
GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV

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

public static final int
GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV

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

public static final int
GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV

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

public static final int
GL_PRIMITIVE_ID_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

public static final int
GL_PRIMITIVES_GENERATED_NV

Accepted by the target parameter of BeginQuery, EndQuery, and GetQueryiv.

public static final int
GL_RASTERIZER_DISCARD_NV

Accepted by the cap parameter of Enable, Disable, and IsEnabled, and by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

public static final int
GL_SECONDARY_COLOR_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

public static final int
GL_SEPARATE_ATTRIBS_NV

Accepted by the bufferMode parameter of TransformFeedbackAttribsNV and TransformFeedbackVaryingsNV.

public static final int
GL_TEXTURE_COORD_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

public static final int
GL_TRANSFORM_FEEDBACK_ATTRIBS_NV

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

public static final int
GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV

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

public static final int
GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV

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

public static final int
GL_TRANSFORM_FEEDBACK_BUFFER_NV

Accepted by the target parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferPointerv, BindBufferRangeNV, BindBufferOffsetNV and BindBufferBaseNV.

public static final int
GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV

Accepted by the param parameter of GetIntegerIndexedvEXT and GetBooleanIndexedvEXT.

public static final int
GL_TRANSFORM_FEEDBACK_BUFFER_START_NV

Accepted by the param parameter of GetIntegerIndexedvEXT and GetBooleanIndexedvEXT.

public static final int
GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV

Accepted by the target parameter of BeginQuery, EndQuery, and GetQueryiv.

public static final int
GL_TRANSFORM_FEEDBACK_RECORD_NV

Accepted by the param parameter of GetIntegerIndexedvEXT and GetBooleanIndexedvEXT.

public static final int
GL_TRANSFORM_FEEDBACK_VARYINGS_NV

Accepted by the pname parameter of GetProgramiv.

public static final int
GL_VERTEX_ID_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
glActiveVaryingNV(int program, ByteBuffer name)

public static void
glActiveVaryingNV(int program, CharSequence name)

public static native void
glBeginTransformFeedbackNV(int primitiveMode)

public static native void
glBindBufferBaseNV(int target, int index, int buffer)

public static native void
glBindBufferOffsetNV(int target, int index, int buffer, long offset)

public static native void
glBindBufferRangeNV(int target, int index, int buffer, long offset, long size)

public static native void
public static void
glGetActiveVaryingNV(int program, int index, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name)

public static void
glGetActiveVaryingNV(int program, int index, int[] length, int[] size, int[] type, ByteBuffer name)

Array version of: GetActiveVaryingNV

public static void
glGetTransformFeedbackVaryingNV(int program, int index, IntBuffer location)

public static int
glGetTransformFeedbackVaryingNV(int program, int index)

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

Array version of: GetTransformFeedbackVaryingNV

public static int
public static int
public static void
glTransformFeedbackAttribsNV(IntBuffer attribs, int bufferMode)

public static void
glTransformFeedbackAttribsNV(int[] attribs, int bufferMode)

Array version of: TransformFeedbackAttribsNV

public static void
glTransformFeedbackStreamAttribsNV(IntBuffer attribs, IntBuffer bufstreams, int bufferMode)

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

Array version of: TransformFeedbackStreamAttribsNV

public static void
glTransformFeedbackVaryingsNV(int program, IntBuffer locations, int bufferMode)

public static void
glTransformFeedbackVaryingsNV(int program, int[] locations, int bufferMode)

Array version of: TransformFeedbackVaryingsNV

public static native void
nglActiveVaryingNV(int program, long name)

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

public static native void
nglGetTransformFeedbackVaryingNV(int program, int index, long location)

public static native int
nglGetVaryingLocationNV(int program, long name)

public static native void
nglTransformFeedbackAttribsNV(int count, long attribs, int bufferMode)

public static native void
nglTransformFeedbackStreamAttribsNV(int count, long attribs, int nbuffers, long bufstreams, int bufferMode)

public static native void
nglTransformFeedbackVaryingsNV(int program, int count, long locations, int bufferMode)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_ACTIVE_VARYING_MAX_LENGTH_NVback to summary
public static final int GL_ACTIVE_VARYING_MAX_LENGTH_NV

Accepted by the pname parameter of GetProgramiv.

GL_ACTIVE_VARYINGS_NVback to summary
public static final int GL_ACTIVE_VARYINGS_NV

Accepted by the pname parameter of GetProgramiv.

GL_BACK_PRIMARY_COLOR_NVback to summary
public static final int GL_BACK_PRIMARY_COLOR_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

GL_BACK_SECONDARY_COLOR_NVback to summary
public static final int GL_BACK_SECONDARY_COLOR_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

GL_CLIP_DISTANCE_NVback to summary
public static final int GL_CLIP_DISTANCE_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

GL_GENERIC_ATTRIB_NVback to summary
public static final int GL_GENERIC_ATTRIB_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

GL_INTERLEAVED_ATTRIBS_NVback to summary
public static final int GL_INTERLEAVED_ATTRIBS_NV

Accepted by the bufferMode parameter of TransformFeedbackAttribsNV and TransformFeedbackVaryingsNV.

GL_LAYER_NVback to summary
public static final int GL_LAYER_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NVback to summary
public static final int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV

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

GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NVback to summary
public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV

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

GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NVback to summary
public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV

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

GL_PRIMITIVE_ID_NVback to summary
public static final int GL_PRIMITIVE_ID_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

GL_PRIMITIVES_GENERATED_NVback to summary
public static final int GL_PRIMITIVES_GENERATED_NV

Accepted by the target parameter of BeginQuery, EndQuery, and GetQueryiv.

GL_RASTERIZER_DISCARD_NVback to summary
public static final int GL_RASTERIZER_DISCARD_NV

Accepted by the cap parameter of Enable, Disable, and IsEnabled, and by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

GL_SECONDARY_COLOR_NVback to summary
public static final int GL_SECONDARY_COLOR_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

GL_SEPARATE_ATTRIBS_NVback to summary
public static final int GL_SEPARATE_ATTRIBS_NV

Accepted by the bufferMode parameter of TransformFeedbackAttribsNV and TransformFeedbackVaryingsNV.

GL_TEXTURE_COORD_NVback to summary
public static final int GL_TEXTURE_COORD_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

GL_TRANSFORM_FEEDBACK_ATTRIBS_NVback to summary
public static final int GL_TRANSFORM_FEEDBACK_ATTRIBS_NV

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

GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NVback to summary
public static final int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV

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

GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NVback to summary
public static final int GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV

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

GL_TRANSFORM_FEEDBACK_BUFFER_NVback to summary
public static final int GL_TRANSFORM_FEEDBACK_BUFFER_NV

Accepted by the target parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferPointerv, BindBufferRangeNV, BindBufferOffsetNV and BindBufferBaseNV.

GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NVback to summary
public static final int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV

Accepted by the param parameter of GetIntegerIndexedvEXT and GetBooleanIndexedvEXT.

GL_TRANSFORM_FEEDBACK_BUFFER_START_NVback to summary
public static final int GL_TRANSFORM_FEEDBACK_BUFFER_START_NV

Accepted by the param parameter of GetIntegerIndexedvEXT and GetBooleanIndexedvEXT.

GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NVback to summary
public static final int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV

Accepted by the target parameter of BeginQuery, EndQuery, and GetQueryiv.

GL_TRANSFORM_FEEDBACK_RECORD_NVback to summary
public static final int GL_TRANSFORM_FEEDBACK_RECORD_NV

Accepted by the param parameter of GetIntegerIndexedvEXT and GetBooleanIndexedvEXT.

GL_TRANSFORM_FEEDBACK_VARYINGS_NVback to summary
public static final int GL_TRANSFORM_FEEDBACK_VARYINGS_NV

Accepted by the pname parameter of GetProgramiv.

GL_VERTEX_ID_NVback to summary
public static final int GL_VERTEX_ID_NV

Accepted by the attribs parameter of TransformFeedbackAttribsNV.

Constructor Detail

NVTransformFeedbackback to summary
protected NVTransformFeedback()

Method Detail

glActiveVaryingNVback to summary
public static void glActiveVaryingNV(int program, ByteBuffer name)
glActiveVaryingNVback to summary
public static void glActiveVaryingNV(int program, CharSequence name)
glBeginTransformFeedbackNVback to summary
public static native void glBeginTransformFeedbackNV(int primitiveMode)
glBindBufferBaseNVback to summary
public static native void glBindBufferBaseNV(int target, int index, int buffer)
glBindBufferOffsetNVback to summary
public static native void glBindBufferOffsetNV(int target, int index, int buffer, long offset)
glBindBufferRangeNVback to summary
public static native void glBindBufferRangeNV(int target, int index, int buffer, long offset, long size)
glEndTransformFeedbackNVback to summary
public static native void glEndTransformFeedbackNV()
glGetActiveVaryingNVback to summary
public static void glGetActiveVaryingNV(int program, int index, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name)
glGetActiveVaryingNVback to summary
public static void glGetActiveVaryingNV(int program, int index, int[] length, int[] size, int[] type, ByteBuffer name)

Array version of: GetActiveVaryingNV

glGetTransformFeedbackVaryingNVback to summary
public static void glGetTransformFeedbackVaryingNV(int program, int index, IntBuffer location)
glGetTransformFeedbackVaryingNVback to summary
public static int glGetTransformFeedbackVaryingNV(int program, int index)
Annotations
@NativeType:void
glGetTransformFeedbackVaryingNVback to summary
public static void glGetTransformFeedbackVaryingNV(int program, int index, int[] location)

Array version of: GetTransformFeedbackVaryingNV

glGetVaryingLocationNVback to summary
public static int glGetVaryingLocationNV(int program, ByteBuffer name)
Annotations
@NativeType:GLint
glGetVaryingLocationNVback to summary
public static int glGetVaryingLocationNV(int program, CharSequence name)
Annotations
@NativeType:GLint
glTransformFeedbackAttribsNVback to summary
public static void glTransformFeedbackAttribsNV(IntBuffer attribs, int bufferMode)
glTransformFeedbackAttribsNVback to summary
public static void glTransformFeedbackAttribsNV(int[] attribs, int bufferMode)

Array version of: TransformFeedbackAttribsNV

glTransformFeedbackStreamAttribsNVback to summary
public static void glTransformFeedbackStreamAttribsNV(IntBuffer attribs, IntBuffer bufstreams, int bufferMode)
glTransformFeedbackStreamAttribsNVback to summary
public static void glTransformFeedbackStreamAttribsNV(int[] attribs, int[] bufstreams, int bufferMode)

Array version of: TransformFeedbackStreamAttribsNV

glTransformFeedbackVaryingsNVback to summary
public static void glTransformFeedbackVaryingsNV(int program, IntBuffer locations, int bufferMode)
glTransformFeedbackVaryingsNVback to summary
public static void glTransformFeedbackVaryingsNV(int program, int[] locations, int bufferMode)

Array version of: TransformFeedbackVaryingsNV

nglActiveVaryingNVback to summary
public static native void nglActiveVaryingNV(int program, long name)
nglGetActiveVaryingNVback to summary
public static native void nglGetActiveVaryingNV(int program, int index, int bufSize, long length, long size, long type, long name)
nglGetTransformFeedbackVaryingNVback to summary
public static native void nglGetTransformFeedbackVaryingNV(int program, int index, long location)
nglGetVaryingLocationNVback to summary
public static native int nglGetVaryingLocationNV(int program, long name)
nglTransformFeedbackAttribsNVback to summary
public static native void nglTransformFeedbackAttribsNV(int count, long attribs, int bufferMode)
nglTransformFeedbackStreamAttribsNVback to summary
public static native void nglTransformFeedbackStreamAttribsNV(int count, long attribs, int nbuffers, long bufstreams, int bufferMode)
nglTransformFeedbackVaryingsNVback to summary
public static native void nglTransformFeedbackVaryingsNV(int program, int count, long locations, int bufferMode)