public bool Activate() { if (m_rootImage <= 0) { return(false); } IL.BindImage(m_rootImage); //Don't bother to activate if any subimages are zero, as it corresponds to the root image if (m_imageIndex > 0 && !IL.ActiveImage(m_imageIndex)) { return(false); } if (m_faceIndex > 0 && !IL.ActiveFace(m_faceIndex)) { return(false); } if (m_layerIndex > 0 && !IL.ActiveLayer(m_layerIndex)) { return(false); } if (m_mipMapIndex > 0 && !IL.ActiveMipMap(m_mipMapIndex)) { return(false); } return(true); }
public bool Activate() { if ((int)this.m_rootImage <= 0) { return(false); } IL.BindImage(this.m_rootImage); return((this.m_imageIndex <= 0 || IL.ActiveImage(this.m_imageIndex)) && (this.m_faceIndex <= 0 || IL.ActiveFace(this.m_faceIndex)) && ((this.m_layerIndex <= 0 || IL.ActiveLayer(this.m_layerIndex)) && (this.m_mipMapIndex <= 0 || IL.ActiveMipMap(this.m_mipMapIndex)))); }