public GVRRenderData setDrawMode ( int drawMode ) { if ( drawMode != GL_POINTS && drawMode != GL_LINES && drawMode != GL_LINE_STRIP && drawMode != GL_LINE_LOOP && drawMode != GL_TRIANGLES && drawMode != GL_TRIANGLE_STRIP && drawMode != GL_TRIANGLE_FAN ) { throw new IllegalArgumentException ( "drawMode must be one of GL_POINTS, GL_LINES, GL_LINE_STRIP, GL_LINE_LOOP, GL_TRIANGLES, GL_TRIANGLE_FAN, GL_TRIANGLE_STRIP." ) ; } NativeRenderData . setDrawMode ( getNative ( ) , drawMode ) ; return this ; }
Set the draw mode for this mesh . Default is GL_TRIANGLES .