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

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

Introduction

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

Prototype

public final native int getSize() ;

Source Link

Document

Gets the size of the requested variable.

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());
    ((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());
    ((IntBuffer) type).put(activeUniform.getType());
    return activeUniform.getName();
}