Example usage for org.lwjgl.opengl GL30 nglVertexAttribIPointer

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

Introduction

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

Prototype

public static void nglVertexAttribIPointer(int index, int size, int type, int stride, long pointer) 

Source Link

Document

Unsafe version of: #glVertexAttribIPointer VertexAttribIPointer

Usage

From source file:com.samrj.devil.gl.VAO.java

private void vertexAttribPointer(int index, AttributeType type, int stride, long pointerOffset) {
    if (type.isInteger)
        GL30.nglVertexAttribIPointer(index, type.components, type.glComponent, stride, pointerOffset);
    else/* w  ww  .  j  a  v a2  s.co m*/
        GL20.nglVertexAttribPointer(index, type.components, type.glComponent, false, stride, pointerOffset);
}