Package org.lwjgl.opengl
Class ARBTransformFeedbackInstanced
- java.lang.Object
-
- org.lwjgl.opengl.ARBTransformFeedbackInstanced
-
public class ARBTransformFeedbackInstanced extends java.lang.ObjectNative bindings to the ARB_transform_feedback_instanced extension.Multiple instances of geometry may be specified to the GL by calling functions such as
DrawArraysInstancedandDrawElementsInstanced. Further, the results of a transform feedback operation may be returned to the GL by callingDrawTransformFeedback, orDrawTransformFeedbackStream. 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.0orARB_transform_feedback2. RequiresOpenGL 3.1orARB_draw_instanced. Promoted to core inOpenGL 4.2.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidglDrawTransformFeedbackInstanced(int mode, int id, int primcount)Renders multiple instances of primitives using a count derived from a transform feedback object.static voidglDrawTransformFeedbackStreamInstanced(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.
-
-
-
Method Detail
-
glDrawTransformFeedbackInstanced
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- what kind of primitives to render. One of:POINTSLINE_STRIPLINE_LOOPLINESPOLYGONTRIANGLE_STRIPTRIANGLE_FANTRIANGLESQUAD_STRIPQUADSLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESid- the name of a transform feedback object from which to retrieve a primitive countprimcount- the number of instances of the geometry to render
-
glDrawTransformFeedbackStreamInstanced
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- what kind of primitives to render. One of:POINTSLINE_STRIPLINE_LOOPLINESPOLYGONTRIANGLE_STRIPTRIANGLE_FANTRIANGLESQUAD_STRIPQUADSLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESid- the name of a transform feedback object from which to retrieve a primitive countstream- the index of the transform feedback stream from which to retrieve a primitive countprimcount- the number of instances of the geometry to render
-
-