Example usage for org.lwjgl.opengl ARBVertexShader glVertexAttribPointerARB

List of usage examples for org.lwjgl.opengl ARBVertexShader glVertexAttribPointerARB

Introduction

In this page you can find the example usage for org.lwjgl.opengl ARBVertexShader glVertexAttribPointerARB.

Prototype

public static void glVertexAttribPointerARB(@NativeType("GLuint") int index, @NativeType("GLint") int size,
        @NativeType("GLenum") int type, @NativeType("GLboolean") boolean normalized,
        @NativeType("GLsizei") int stride, @NativeType("void const *") float[] pointer) 

Source Link

Document

Array version of: #glVertexAttribPointerARB VertexAttribPointerARB

Usage

From source file:com.a2client.corex.ShaderAttrib.java

License:Open Source License

/**
 * ?  ,    //from  w w  w.ja va2 s.  c o m
 */
public void setValue(int stride, long buffer, int offset) {
    if (ID != -1) {
        ARBVertexShader.glVertexAttribPointerARB(ID, Size, DType, Norm, stride, buffer + offset);
        //            System.out.println("set value <"+Name+"> size="+Size+" stride="+stride+ " offset="+offset+" norm="+(Norm?"true":"false") );
    }
}