Tizen Native API
4.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. |
Detailed Description
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.
- Since:
- 3.0, DALi version 1.1.43
Constructor & Destructor Documentation
Default constructor, creates an empty handle.
- Since:
- 3.0, DALi version 1.1.43
Destructor.
- Since:
- 3.0, DALi version 1.1.43
Dali::TextureSet::TextureSet | ( | const TextureSet & | handle | ) |
Copy constructor, creates a new handle to the same object.
- Since:
- 3.0, DALi version 1.1.43
- Parameters:
-
[in] handle Handle to an object
Dali::TextureSet::TextureSet | ( | Internal::TextureSet * | pointer | ) | [explicit] |
The constructor.
- Note:
- Not intended for application developers.
- Since:
- 3.0, DALi version 1.1.43
- Parameters:
-
[in] pointer A pointer to a newly allocated TextureSet
Member Function Documentation
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.
- Since:
- 3.0, DALi version 1.1.43
- Parameters:
-
[in] handle Handle to an object
- Returns:
- TextureSet handle or an uninitialized handle
Sampler Dali::TextureSet::GetSampler | ( | size_t | index | ) | const |
Sets the sampler to be used by the image at position "index".
- Since:
- 3.0, DALi version 1.1.43
- Parameters:
-
[in] index The position in the texture set of the image
- Returns:
- A handle to the sampler at the specified position
Texture Dali::TextureSet::GetTexture | ( | size_t | index | ) | const |
Gets the image at position "index".
- Since:
- 3.0, DALi version 1.1.43
- Parameters:
-
[in] index The position in the texture set of the image
- Returns:
- A handle to the image at the the specified position
size_t Dali::TextureSet::GetTextureCount | ( | ) | const |
Gets the number of textures present in the TextureSet.
- Since:
- 3.0, DALi version 1.1.43
- Returns:
- The number of textures in the TextureSet
static TextureSet Dali::TextureSet::New | ( | ) | [static] |
Creates a new TextureSet object.
- Since:
- 3.0, DALi version 1.1.43
- Returns:
- A handle to a newly allocated TextureSet
TextureSet& Dali::TextureSet::operator= | ( | const TextureSet & | handle | ) |
Assignment operator, changes this handle to point at the same object.
- Since:
- 3.0, DALi version 1.1.43
- Parameters:
-
[in] handle Handle to an object
- Returns:
- A reference to this
void Dali::TextureSet::SetSampler | ( | size_t | index, |
Sampler | sampler | ||
) |
Sets the sampler to be used by the image at position "index".
- Since:
- 3.0, DALi version 1.1.43
- Parameters:
-
[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".
- Since:
- 3.0, DALi version 1.1.43
- Parameters:
-
[in] index The position in the texture set of the texture [in] texture The texture