Example usage for com.badlogic.gdx.graphics GL20 GL_LINE_STRIP

List of usage examples for com.badlogic.gdx.graphics GL20 GL_LINE_STRIP

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics GL20 GL_LINE_STRIP.

Prototype

int GL_LINE_STRIP

To view the source code for com.badlogic.gdx.graphics GL20 GL_LINE_STRIP.

Click Source Link

Usage

From source file:com.mbrlabs.mundus.commons.g3d.MG3dModelLoader.java

License:Apache License

private int parseType(String type) {
    if (type.equals("TRIANGLES")) {
        return GL20.GL_TRIANGLES;
    } else if (type.equals("LINES")) {
        return GL20.GL_LINES;
    } else if (type.equals("POINTS")) {
        return GL20.GL_POINTS;
    } else if (type.equals("TRIANGLE_STRIP")) {
        return GL20.GL_TRIANGLE_STRIP;
    } else if (type.equals("LINE_STRIP")) {
        return GL20.GL_LINE_STRIP;
    } else {//from   ww  w . j av  a2 s  .  c o  m
        throw new GdxRuntimeException("Unknown primitive type '" + type
                + "', should be one of triangle, trianglestrip, line, linestrip, lineloop or point");
    }
}