Example usage for org.lwjgl.opengl GL20 glGetActiveAttrib

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

Introduction

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

Prototype

@NativeType("void")
public static String glGetActiveAttrib(@NativeType("GLuint") int program, @NativeType("GLuint") int index,
        @NativeType("GLint *") IntBuffer size, @NativeType("GLenum *") IntBuffer type) 

Source Link

Document

Returns information about an active attribute variable for the specified program object.

Usage

From source file:processing.opengl.PLWJGL.java

License:Open Source License

@Override
public String getActiveAttrib(int program, int index, IntBuffer size, IntBuffer type) {
    IntBuffer typeTmp = BufferUtils.createIntBuffer(2);
    String name = GL20.glGetActiveAttrib(program, index, 256, typeTmp);
    size.put(typeTmp.get(0));/*from  w  ww  . j  ava 2s . co  m*/
    type.put(typeTmp.get(1));
    return name;
}

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

License:Open Source License

public static String glGetActiveAttrib(int a, int b, int c, IntBuffer d) {
    return GL20.glGetActiveAttrib(a, b, c, d);
}