Tizen Native API
5.0
|
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. More...
Public Member Functions | |
TextureSet () | |
Default constructor, creates an empty handle. | |
~TextureSet () | |
Destructor. | |
TextureSet (const TextureSet &handle) | |
Copy constructor, creates a new handle to the same object. | |
TextureSet & | operator= (const TextureSet &handle) |
Assignment operator, changes this handle to point at the same object. | |
void | SetTexture (size_t index, Texture texture) |
Sets the texture at position "index". | |
Texture | GetTexture (size_t index) const |
Gets the image at position "index". | |
void | SetSampler (size_t index, Sampler sampler) |
Sets the sampler to be used by the image at position "index". | |
Sampler | GetSampler (size_t index) const |
Sets the sampler to be used by the image at position "index". | |
size_t | GetTextureCount () const |
Gets the number of textures present in the TextureSet. | |
TextureSet (Internal::TextureSet *pointer) | |
The constructor. | |
Static Public Member Functions | |
static TextureSet | New () |
Creates a new TextureSet object. | |
static TextureSet | DownCast (BaseHandle handle) |
Downcasts to a TextureSet handle. If handle is not a TextureSet, the returned handle is left uninitialized. |
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.
Default constructor, creates an empty handle.
Destructor.
Dali::TextureSet::TextureSet | ( | const TextureSet & | handle | ) |
Copy constructor, creates a new handle to the same object.
[in] | handle | Handle to an object |
Dali::TextureSet::TextureSet | ( | Internal::TextureSet * | pointer | ) | [explicit] |
The constructor.
[in] | pointer | A pointer to a newly allocated TextureSet |
static TextureSet Dali::TextureSet::DownCast | ( | BaseHandle | handle | ) | [static] |
Downcasts to a TextureSet handle. If handle is not a TextureSet, the returned handle is left uninitialized.
[in] | handle | Handle to an object |
Sampler Dali::TextureSet::GetSampler | ( | size_t | index | ) | const |
Sets the sampler to be used by the image at position "index".
[in] | index | The position in the texture set of the image |
Texture Dali::TextureSet::GetTexture | ( | size_t | index | ) | const |
Gets the image at position "index".
[in] | index | The position in the texture set of the image |
size_t Dali::TextureSet::GetTextureCount | ( | ) | const |
Gets the number of textures present in the TextureSet.
static TextureSet Dali::TextureSet::New | ( | ) | [static] |
Creates a new TextureSet object.
TextureSet& Dali::TextureSet::operator= | ( | const TextureSet & | handle | ) |
Assignment operator, changes this handle to point at the same object.
[in] | handle | Handle to an object |
void Dali::TextureSet::SetSampler | ( | size_t | index, |
Sampler | sampler | ||
) |
Sets the sampler to be used by the image at position "index".
[in] | index | The position in the texture set of the sampler |
[in] | sampler | The sampler to use |
void Dali::TextureSet::SetTexture | ( | size_t | index, |
Texture | texture | ||
) |
Sets the texture at position "index".
[in] | index | The position in the texture set of the texture |
[in] | texture | The texture |