/** * This clearLive routine first calls the superclass's method, then * it removes itself to the list of lights */ @Override void clearLive(int refCount) { super.clearLive(refCount); if (shaderProgram != null) { shaderProgram.clearLive(refCount); } if (shaderAttributeSet != null) { shaderAttributeSet.clearLive(refCount); } }
/** * sets the appearance and send a message */ void setAppearance(Appearance app) { if (appearance != null) synchronized(appearance.liveStateLock) { appearance.clearLive(refCount); } initAppearance(app); if (appearance != null) { synchronized(appearance.liveStateLock) { appearance.setLive(inBackgroundGroup, refCount); } } // There is no need to clone the appearance's mirror sendMessage(APPEARANCE_CHANGED, (appearance != null ? appearance.mirror: null)); }
appearance.clearLive(s.refCount);
this.appearance.clearLive(refCount); for (int i=mirrorShape3D.size()-1; i>=0; i--) { this.appearance.removeAMirrorUser(
appearance.clearLive(refCount); for (int i=0; i<mirrorShape3D.size(); i++) { s = mirrorShape3D.get(i);
synchronized(appearance.liveStateLock) { if (k == 0) { appearance.clearLive(s.refCount);
appearance.clearLive(s.refCount); for (int k = 0; k < appList.size(); k++) { appearance.removeAMirrorUser((Shape3DRetained)appList.get(k));