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.
C#Copypublic class TextureSet : BaseHandle, INotifyPropertyChanged, IDisposable
- Inheritance
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Constructors
Declaration
C#Copypublic TextureSet()
Methods
Declaration
C#Copyprotected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |
Overrides
Declaration
C#Copypublic 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. |
Declaration
C#Copypublic 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. |
Declaration
C#Copypublic uint GetTextureCount()
Returns
Type | Description |
---|---|
uint | The number of textures in the TextureSet. |
Declaration
C#Copypublic 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. |
Declaration
C#Copypublic 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. |
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable