Example usage for com.google.gwt.webgl.client WebGLRenderingContext pixelStorei

List of usage examples for com.google.gwt.webgl.client WebGLRenderingContext pixelStorei

Introduction

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

Prototype

public final native void pixelStorei(int pname, int param) ;

Source Link

Usage

From source file:org.oscim.gdx.client.GdxGL.java

License:Apache License

public GdxGL(WebGLRenderingContext gl) {
    super(gl);
    gl.pixelStorei(WebGLRenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL, 1);
    this.gl = gl;
}

From source file:org.oscim.gdx.client.GwtGLAdapter.java

License:Open Source License

public GwtGLAdapter(WebGLRenderingContext gl) {
    super(gl);//from  ww w.j av a 2  s .  com
    gl.pixelStorei(WebGLRenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL, 1);
    this.gl = gl;
}