void setLive(boolean inBackgroundGroup, int refCount) { int oldRefCount = this.refCount; doSetLive(inBackgroundGroup, refCount); if (oldRefCount <= 0) { super.markAsLive(); } }
@Override void setLive(boolean backgroundGroup, int refCount) { // System.err.println("ShaderAttributeSetRetained.setLive()"); ShaderAttributeRetained[] sAttrsRetained = new ShaderAttributeRetained[attrs.size()]; sAttrsRetained = attrs.values().toArray(sAttrsRetained); for(int i=0; i < sAttrsRetained.length; i++) { sAttrsRetained[i].setLive(backgroundGroup, refCount); } super.doSetLive(backgroundGroup, refCount); super.markAsLive(); }
@Override void setLive(boolean backgroundGroup, int refCount) { // System.err.println("ShaderProgramRetained.setLive()"); if (shaders != null) { for (int i = 0; i < shaders.length; i++){ shaders[i].setLive(backgroundGroup, refCount); } } super.doSetLive(backgroundGroup, refCount); super.markAsLive(); }
/** * This setLive routine calls the superclass's method when reference * count is 1 */ @Override void doSetLive(boolean inBackgroundGroup, int refCount) { super.doSetLive(inBackgroundGroup, refCount); this.update(); this.computeBoundingBox(); }
@Override void setLive(boolean backgroundGroup, int refCount) { if (texture != null) texture.setLive(backgroundGroup, refCount); if (texAttrs != null) texAttrs.setLive(backgroundGroup, refCount); if (texGen != null) texGen.setLive(backgroundGroup, refCount); // Increment the reference count and initialize the textureUnitState // mirror object super.doSetLive(backgroundGroup, refCount); super.markAsLive(); }
super.doSetLive(backgroundGroup, refCount);
super.doSetLive(backgroundGroup, refCount);