Java Code Examples for android.opengl.GLES20#GL_LINE_LOOP

The following examples show how to use android.opengl.GLES20#GL_LINE_LOOP . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OGLESShaderRenderer.java    From MikuMikuStudio with BSD 2-Clause "Simplified" License 6 votes vote down vote up
/*********************************************************************\
|* Render Calls                                                      *|
\*********************************************************************/
public int convertElementMode(Mesh.Mode mode) {
    switch (mode) {
        case Points:
            return GLES20.GL_POINTS;
        case Lines:
            return GLES20.GL_LINES;
        case LineLoop:
            return GLES20.GL_LINE_LOOP;
        case LineStrip:
            return GLES20.GL_LINE_STRIP;
        case Triangles:
            return GLES20.GL_TRIANGLES;
        case TriangleFan:
            return GLES20.GL_TRIANGLE_FAN;
        case TriangleStrip:
            return GLES20.GL_TRIANGLE_STRIP;
        default:
            throw new UnsupportedOperationException("Unrecognized mesh mode: " + mode);
    }
}
 
Example 2
Source File: Object3DBuilder.java    From react-native-3d-model-view with MIT License 4 votes vote down vote up
public int getDrawMode() {
	return GLES20.GL_LINE_LOOP;
}
 
Example 3
Source File: BoundingBoxBuilder.java    From android-3D-model-viewer with GNU Lesser General Public License v3.0 4 votes vote down vote up
public int getDrawMode() {
	return GLES20.GL_LINE_LOOP;
}