Class TextureSet
Definition
- Assembly:
- Tizen.NUI.dll
TextureSet is a handle to an object that specifies the set of images used as textures by a renderer.
The images have to be ordered in the same order they are declared in the shader.
public class TextureSet : BaseHandle, IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceTextureSet()
Create an instance of TextureSet.
Declaration
public TextureSet()
Methods
View SourceDispose(DisposeTypes)
Dispose.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |
Overrides
View SourceGetSampler(uint)
Sets the sampler to be used by the image at position "index".
Declaration
public Sampler GetSampler(uint index)
Parameters
Type | Name | Description |
---|---|---|
uint | index | The position in the texture set of the image. |
Returns
Type | Description |
---|---|
Sampler | A handle to the sampler at the specified position. |
GetTexture(uint)
Gets the image at position "index".
Declaration
public Texture GetTexture(uint index)
Parameters
Type | Name | Description |
---|---|---|
uint | index | The position in the texture set of the image. |
Returns
Type | Description |
---|---|
Texture | A handle to the image at the the specified position. |
GetTextureCount()
Gets the number of textures present in the TextureSet.
Declaration
public uint GetTextureCount()
Returns
Type | Description |
---|---|
uint | The number of textures in the TextureSet. |
SetSampler(uint, Sampler)
Sets the sampler to be used by the image at position "index".
Declaration
public void SetSampler(uint index, Sampler sampler)
Parameters
Type | Name | Description |
---|---|---|
uint | index | The position in the texture set of the image. |
Sampler | sampler | The sampler to use. |
SetTexture(uint, Texture)
Sets the texture at position "index".
Declaration
public void SetTexture(uint index, Texture texture)
Parameters
Type | Name | Description |
---|---|---|
uint | index | The position in the texture set of the texture. |
Texture | texture | The texture. |