Example usage for org.lwjgl.opengl GL20 nglVertexAttribPointer

List of usage examples for org.lwjgl.opengl GL20 nglVertexAttribPointer

Introduction

In this page you can find the example usage for org.lwjgl.opengl GL20 nglVertexAttribPointer.

Prototype

public static void nglVertexAttribPointer(int index, int size, int type, boolean normalized, int stride,
        long pointer) 

Source Link

Document

Unsafe version of: #glVertexAttribPointer VertexAttribPointer

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/*from   ww  w.  ja v a  2 s. com*/
        GL20.nglVertexAttribPointer(index, type.components, type.glComponent, false, stride, pointerOffset);
}