Example usage for org.lwjgl.opengl GL30 glBindBufferBase

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

Introduction

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

Prototype

public static void glBindBufferBase(@NativeType("GLenum") int target, @NativeType("GLuint") int index,
        @NativeType("GLuint") int buffer) 

Source Link

Document

Binds a buffer object to an indexed buffer target.

Usage

From source file:com.badlogic.gdx.backends.jglfw.JglfwGL30.java

License:Apache License

@Override
public void glBindBufferBase(int target, int index, int buffer) {
    GL30.glBindBufferBase(target, index, buffer);
}

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

License:Open Source License

public void transform() {
    GL30.glBindVertexArray(vaoId);//from   w ww .  j a v  a2s. co m
    GL11.glEnable(GL30.GL_RASTERIZER_DISCARD);
    GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, vboId);

    transformShader.use();
    transformShader.info.initAttribPointers();
    transformShader.info.enableAttribs();

    GL30.glBindBufferBase(GL30.GL_TRANSFORM_FEEDBACK_BUFFER, 0, vboFeedbackId);
    GL30.glBeginTransformFeedback(GL11.GL_POINTS);
    GL11.glDrawArrays(GL11.GL_POINTS, 0, countElements);
    GL30.glEndTransformFeedback();

    transformShader.info.disableAttribs();
    transformShader.unuse();
    GL11.glDisable(GL30.GL_RASTERIZER_DISCARD);
}

From source file:io.root.gfx.glutils.GL.java

License:Apache License

public static void glBindBufferBase(int target, int index, int buffer) {
    GL30.glBindBufferBase(target, index, buffer);
}

From source file:jpcsp.graphics.RE.RenderingEngineLwjgl31.java

License:Open Source License

@Override
public void bindBufferBase(int target, int bindingPoint, int buffer) {
    GL30.glBindBufferBase(bufferTargetToGL[target], bindingPoint, buffer);
}

From source file:tk.ivybits.engine.gl.GL.java

License:Open Source License

public static void glBindBufferBase(int a, int b, int c) {
    GL30.glBindBufferBase(a, b, c);
}