Provides script language access to C++ objects of this type.
Function members are as follows:
Return Type | Function Name | Documentation |
---|---|---|
int32 | ClearAllChannels | A single <TextureSliceNode> selects channels from up to 16 <Texture> objects in order to create a new <Texture> that is composed of the channels of the input <Texture> objects. Clears the TextureChannelNode's <Texture> object data sources. |
int32 | GetAllTextures | Populates a <List> with non-owning pointers to all the <Texture> objects referred to by this object. |
int32 | GetChannelCount | Returns the number of channels for the TextureChannelNode, which is expressed as the bit-depth of the TextureChannelNode's pixel format / 8 bits per channel. For example, given the pixel format 8888RGBA, this function returns 4. |
int32 | GetChannelSelectors | Populates an <Int32Array> with the <TextureSliceNode> object's channel selector values. A channel selector value refers to the channel to extract from the <Texture> data source. For example, given a <Texture> with an <Image> object storing 8888RGBA, you can select channels 0, 1, 2, or 3. A <TextureSliceNode> may select multiple channels from multiple <Texture> objects, so the values are stored in the <Int32Array> submitted to this function. |
<Node> | GetTexture | A <TextureSliceNode> may refer to up to 16 <Texture> data source objects, and this function returns a pointer to the <Node> at the specified index, or nullptr if the <Node> does not exist. While the <TextureSliceNode> data sources should always be of type <Texture>, this cannot be guaranteed, so a <Node> pointer is returned instead of a <Texture> pointer. |
int32 | GetTextureChannelSelector | A <TextureSliceNode> may store up to 16 channel selector values, and this function returns the channel selector value at the specified index, or -1 if the index is invalid. |
int32 | IsSameTexture | Returns true if the TextureChannelNode's <Texture> object references refer to the same <Texture>. Otherwise returns false. |
int32 | SetAllChannels | Sets all the <TextureSliceNode> object's <Texture> object references to the <Node> submitted to this function. The total number of <Texture> object data sources is at most 16, and this function only sets <Texture> object data sources for valid channels. For example, given a <Texture> with an <Image> object representing 8888RGBA, this function sets the first 4 <Texture> object references. The remaining <Texture> data sources are not set. |
int32 | SetTexture | Sets the <TextureSliceNode> object's <Texture> data source at the specified index. |
int32 | SetTextureChannelSelector | Sets the <TextureSliceNode> object's texture channel selector at the specified index. |
Object members are as follows:
Type Name | Accessor Name | Documentation |
---|---|---|
int32 | PixelFormat | Gets or sets the pixel format of the <TextureSliceNode>. This value refers to the Image_Pixel_Format enumeration. Please see 'IPF' in TYPE_SERVICE_ENUMERATION_UTIL.SSL for more information. |