Example usage for com.google.gwt.webgl.client WebGLActiveInfo getType

List of usage examples for com.google.gwt.webgl.client WebGLActiveInfo getType

Introduction

In this page you can find the example usage for com.google.gwt.webgl.client WebGLActiveInfo getType.

Prototype

public final native int getType() ;

Source Link

Usage

From source file:com.badlogic.gdx.backends.gwt.GwtGL20.java

License:Apache License

@Override
public String glGetActiveAttrib(int program, int index, IntBuffer size, Buffer type) {
    WebGLActiveInfo activeAttrib = gl.getActiveAttrib(programs.get(program), index);
    size.put(activeAttrib.getSize());/*w  w w  . java 2s  .c  o m*/
    ((IntBuffer) type).put(activeAttrib.getType());
    return activeAttrib.getName();
}

From source file:com.badlogic.gdx.backends.gwt.GwtGL20.java

License:Apache License

@Override
public String glGetActiveUniform(int program, int index, IntBuffer size, Buffer type) {
    WebGLActiveInfo activeUniform = gl.getActiveUniform(programs.get(program), index);
    size.put(activeUniform.getSize());/*from   w w  w  .  java  2s  .c o  m*/
    ((IntBuffer) type).put(activeUniform.getType());
    return activeUniform.getName();
}