public static void setRenderer ( int type ) { switch ( type ) { case IMMEDIATE_RENDERER : setRenderer ( new ImmediateModeOGLRenderer ( ) ) ; return ; case VERTEX_ARRAY_RENDERER : setRenderer ( new VAOGLRenderer ( ) ) ; return ; } throw new RuntimeException ( "Unknown renderer type: " + type ) ; }
Set the renderer to one of the known types