Example usage for javax.microedition.khronos.opengles GL10 GL_NEAREST

List of usage examples for javax.microedition.khronos.opengles GL10 GL_NEAREST

Introduction

In this page you can find the example usage for javax.microedition.khronos.opengles GL10 GL_NEAREST.

Prototype

int GL_NEAREST

To view the source code for javax.microedition.khronos.opengles GL10 GL_NEAREST.

Click Source Link

Usage

From source file:com.funzio.pure2D.ui.vo.TextureOptionsVO.java

public TextureOptionsVO(final JSONObject json) {

    final String filterSt = json.optString("filter");
    if (NEAREST.equals(filterSt)) {
        filter = GL10.GL_NEAREST;
    } else if (LINEAR.equals(filterSt)) {
        filter = GL10.GL_LINEAR;/*  www . j  a va 2 s.c o m*/
    } else {
        filter = 0;
    }

    mipmaps = json.optInt("mipmaps", 0);
}