Example usage for org.lwjgl.opengl GL30 GL_INTERLEAVED_ATTRIBS

List of usage examples for org.lwjgl.opengl GL30 GL_INTERLEAVED_ATTRIBS

Introduction

In this page you can find the example usage for org.lwjgl.opengl GL30 GL_INTERLEAVED_ATTRIBS.

Prototype

int GL_INTERLEAVED_ATTRIBS

To view the source code for org.lwjgl.opengl GL30 GL_INTERLEAVED_ATTRIBS.

Click Source Link

Document

Accepted by the bufferMode parameter of TransformFeedbackVaryings.

Usage

From source file:com.xrbpowered.gl.res.shaders.FeedbackVertexInfo.java

License:Open Source License

@Override
public int bindAttribLocations(int programId) {
    int res = super.bindAttribLocations(programId);
    if (feedbackNames != null) {
        System.out.println("glTransformFeedbackVaryings " + Arrays.toString(feedbackNames));
        GL30.glTransformFeedbackVaryings(programId, feedbackNames, GL30.GL_INTERLEAVED_ATTRIBS);
    }/*  w ww.  j av a  2s . c o  m*/
    return res;
}