Example usage for com.google.gwt.webgl.client WebGLShaderPrecisionFormat getPrecision

List of usage examples for com.google.gwt.webgl.client WebGLShaderPrecisionFormat getPrecision

Introduction

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

Prototype

public native int getPrecision() ;

Source Link

Usage

From source file:org.parallax3d.parallax.platforms.gwt.GwtGL20.java

License:Open Source License

@Override
public void glGetShaderPrecisionFormat(int shadertype, int precisiontype, IntBuffer range,
        IntBuffer precision) {//from  www .j  a  va2s  . c o m
    WebGLShaderPrecisionFormat format = gl.getShaderPrecisionFormat(shadertype, precisiontype);
    range.put(format.getRangeMin());
    precision.put(format.getPrecision());
}