/** * Retrieves the length of the texture unit state array from * this appearance object. The length of this array specifies the * maximum number of texture units that will be used by this * appearance object. If the array is null, a count of 0 is * returned. * * @return the length of the texture unit state array * * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph * * @since Java 3D 1.2 */ public int getTextureUnitCount() { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_TEXTURE_UNIT_STATE_READ)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance21")); return ((AppearanceRetained)this.retained).getTextureUnitCount(); }