@Override void clearLive(int refCount) { // System.err.println("SourceCodeShaderRetained.clearLive()"); super.clearLive(refCount); }
@Override void clearLive(int refCount) { // System.err.println("ShaderAttributeSetRetained.clearLive()"); super.clearLive(refCount); ShaderAttributeRetained[] sAttrsRetained = new ShaderAttributeRetained[attrs.size()]; sAttrsRetained = attrs.values().toArray(sAttrsRetained); for(int i=0; i < sAttrsRetained.length; i++) { sAttrsRetained[i].clearLive(refCount); } }
@Override void clearLive(int refCount) { // System.err.println("ShaderProgramRetained.clearLive()"); super.clearLive(refCount); if (shaders != null) { for (int i = 0; i < shaders.length; i++) { shaders[i].clearLive(refCount); } } }
@Override void clearLive(int refCount) { super.clearLive(refCount); if (images != null) { for (int j = 0; j < numFaces; j++) { for (int i = 0; i < maxLevels; i++) { images[j][i].clearLive(refCount); images[j][i].removeUser(mirror); } } } }
@Override void clearLive(int refCount) { super.clearLive(refCount); if (texture != null) texture.clearLive(refCount); if (texAttrs != null) texAttrs.clearLive(refCount); if (texGen != null) texGen.clearLive(refCount); }
/** * An abstract method to validate the texture unit state component */ final void setTextureUnitStateComponent(NodeComponent comp, NodeComponentRetained thisComp, int messageOp) { if (source.isLive()) { if ((comp == null && thisComp == null) || (comp != null && comp.retained == thisComp)) return; if (thisComp != null) { thisComp.clearLive(refCount); thisComp.removeMirrorUsers(this); } if (comp != null) { ((NodeComponentRetained)comp.retained).setLive(inBackgroundGroup, refCount); // If texture unit is live, then copy all the users of this // texture unit state as users of this texture component ((NodeComponentRetained)comp.retained).copyMirrorUsers(this); } if (messageOp != -1) { sendMessage(messageOp, (comp == null ? null : ((NodeComponentRetained)comp.retained).mirror)); } } }
super.clearLive(refCount);