Class TextureSet

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll
API Level:
3

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#
Copy
public class TextureSet : BaseHandle, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable
Inheritance
System.Object
Tizen.NUI.Binding.BindableObject
Tizen.NUI.Binding.Element
TextureSet
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable

Constructors

View Source

TextureSet()

Create an instance of TextureSet.

Declaration
C#
Copy
public TextureSet()
API Level: 3

Methods

View Source

Dispose(DisposeTypes)

Dispose.

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type
Overrides
API Level: 3
View Source

GetSampler(UInt32)

Sets the sampler to be used by the image at position "index".

Declaration
C#
Copy
public Sampler GetSampler(uint index)
Parameters
Type Name Description
System.UInt32 index

The position in the texture set of the image.

Returns
Type Description
Sampler

A handle to the sampler at the specified position.

API Level: 3
View Source

GetTexture(UInt32)

Gets the image at position "index".

Declaration
C#
Copy
public Texture GetTexture(uint index)
Parameters
Type Name Description
System.UInt32 index

The position in the texture set of the image.

Returns
Type Description
Texture

A handle to the image at the the specified position.

API Level: 3
View Source

GetTextureCount()

Gets the number of textures present in the TextureSet.

Declaration
C#
Copy
public uint GetTextureCount()
Returns
Type Description
System.UInt32

The number of textures in the TextureSet.

API Level: 3
View Source

SetSampler(UInt32, Sampler)

Sets the sampler to be used by the image at position "index".

Declaration
C#
Copy
public void SetSampler(uint index, Sampler sampler)
Parameters
Type Name Description
System.UInt32 index

The position in the texture set of the image.

Sampler sampler

The sampler to use.

API Level: 3
View Source

SetTexture(UInt32, Texture)

Sets the texture at position "index".

Declaration
C#
Copy
public void SetTexture(uint index, Texture texture)
Parameters
Type Name Description
System.UInt32 index

The position in the texture set of the texture.

Texture texture

The texture.

API Level: 3

Implements

System.ComponentModel.INotifyPropertyChanged
System.IDisposable