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

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

Introduction

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

Prototype

int GL_VERSION

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

Click Source Link

Usage

From source file:Main.java

public static String getGLVendorInfo(GL10 gl) {
    int[] maxTexSize = getMaxTextureSize(gl);
    int[] maxTexUnits = getMaxTextureUnits(gl);
    return String.format(
            "GL version: %s\nGL vendor: %s\nGL renderer: %s\nGL extensions: %s\nGL max texture size: %d\nGL max texture unit: %d\n",
            gl.glGetString(GL10.GL_VERSION), gl.glGetString(GL10.GL_VENDOR), gl.glGetString(GL10.GL_RENDERER),
            gl.glGetString(GL10.GL_EXTENSIONS), maxTexSize[0], maxTexUnits[0]);
}