onDraw
This method is called by the renderer. Usually it should not be called directly. @param r the renderer used for display.
3738394041424344454647
} for (int i = 0, max = Math.min(_childMask.length(), _children.size()); i < max; i++) { if (_childMask.get(i)) { final Spatial child = _children.get(i); if (child != null) { child.onDraw(r); } } } }
5152535455565758596061
Spatial child; for (int i = 0, cSize = _children.size(); i < cSize; i++) { child = _children.get(i); if (child != null) { child.onDraw(r); } } r.renderBuckets(); context.popEnforcedStates();
286287288289290291292293294295296
} Spatial child; for (int i = 0, cSize = getNumberOfChildren(); i < cSize; i++) { child = getChild(i); if (child != null) { child.onDraw(renderer); } } if (needsPop) { renderer.popClip(); }
334335336337338339340341342343344
Spatial child; int i, max; for (i = 0, max = getNumberOfChildren(); i < max; i++) { child = getChild(i); if (child != null) { child.onDraw(r); } } if (!_popupMenus.isEmpty()) { for (i = 0, max = _popupMenus.size(); i < max; i++) { _popupMenus.get(i).onDraw(r);
127128129130131132133134135136137
for ( int i = 0, cSize = children.size(); i < cSize; i++ ) { child = children.get( i ); if ( child != null ) { float distSquared = tmpVec.set( camera.getLocation() ).distance(child.getLocalTranslation()); if ( distSquared <= VEGETATION_DISTANCE ) { child.onDraw( r ); } } } }
125126127128129130131132133134135
IMwDataProvider provider = this.drawOverlay(); // overlay onDraw event if (provider != null) { GL11.glPushMatrix(); provider.onDraw(this.mapView, this.mapMode); GL11.glPopMatrix(); } if (this.mapMode.circular) { Render.disableStencil();