Top Description Constructors Methods
org.lwjgl.opengl

public Class ARBTransformFeedbackInstanced

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

Native bindings to the ARB_transform_feedback_instanced extension.

Multiple instances of geometry may be specified to the GL by calling functions such as DrawArraysInstanced and DrawElementsInstanced. Further, the results of a transform feedback operation may be returned to the GL by calling DrawTransformFeedback, or DrawTransformFeedbackStream. However, it is not presently possible to draw multiple instances of data transform feedback without using a query and the resulting round trip from server to client.

This extension adds functionality to draw multiple instances of the result of a transform feedback operation.

Requires OpenGL 4.0 or ARB_transform_feedback2. Requires OpenGL 3.1 or ARB_draw_instanced. Promoted to core in OpenGL 4.2.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
glDrawTransformFeedbackInstanced(int mode, int
the name of a transform feedback object from which to retrieve a primitive count
id
,
int
the number of instances of the geometry to render
primcount
)

Renders multiple instances of primitives using a count derived from a transform feedback object.

public static void
glDrawTransformFeedbackStreamInstanced(int mode, int
the name of a transform feedback object from which to retrieve a primitive count
id
,
int
the index of the transform feedback stream from which to retrieve a primitive count
stream
,
int
the number of instances of the geometry to render
primcount
)

Renders multiple instances of primitives using a count derived from a specifed stream of a transform feedback object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ARBTransformFeedbackInstancedback to summary
protected ARBTransformFeedbackInstanced()

Method Detail

glDrawTransformFeedbackInstancedback to summary
public static void glDrawTransformFeedbackInstanced(int mode, int id, int primcount)

Renders multiple instances of primitives using a count derived from a transform feedback object.

Parameters
mode:int

what kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
id:int

the name of a transform feedback object from which to retrieve a primitive count

primcount:int

the number of instances of the geometry to render

glDrawTransformFeedbackStreamInstancedback to summary
public static void glDrawTransformFeedbackStreamInstanced(int mode, int id, int stream, int primcount)

Renders multiple instances of primitives using a count derived from a specifed stream of a transform feedback object.

Parameters
mode:int

what kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
id:int

the name of a transform feedback object from which to retrieve a primitive count

stream:int

the index of the transform feedback stream from which to retrieve a primitive count

primcount:int

the number of instances of the geometry to render