List of usage examples for com.google.gwt.webgl.client WebGLActiveInfo getType
public final native int getType() ;
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(); }