Tizen(Headed) Native API
6.5
|
Renderer is a handle to an object used to show content by combining a Geometry, a TextureSet and a shader. More...
Classes | |
struct | Property |
Enumeration for instances of properties belonging to the Renderer class. More... | |
Public Member Functions | |
Renderer () | |
Default constructor, creates an empty handle. | |
~Renderer () | |
Destructor. | |
Renderer (const Renderer &handle) | |
Copy constructor, creates a new handle to the same object. | |
Renderer & | operator= (const Renderer &handle) |
Assignment operator, changes this handle to point at the same object. | |
void | SetGeometry (Geometry &geometry) |
Sets the geometry to be used by this renderer. | |
Geometry | GetGeometry () const |
Gets the geometry used by this renderer. | |
void | SetIndexRange (int firstElement, int elementsCount) |
Sets effective range of indices to draw from bound index buffer. | |
void | SetTextures (TextureSet &textureSet) |
Sets the texture set to be used by this renderer. | |
TextureSet | GetTextures () const |
Gets the texture set used by this renderer. | |
void | SetShader (Shader &shader) |
Sets the shader used by this renderer. | |
Shader | GetShader () const |
Gets the shader used by this renderer. | |
Renderer (Internal::Renderer *pointer) | |
The constructor. | |
Static Public Member Functions | |
static Renderer | New (Geometry &geometry, Shader &shader) |
Creates a new Renderer object. | |
static Renderer | DownCast (BaseHandle handle) |
Downcasts to a renderer handle. If not, a renderer the returned renderer handle is left uninitialized. |
Detailed Description
Renderer is a handle to an object used to show content by combining a Geometry, a TextureSet and a 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::Renderer::Renderer | ( | const Renderer & | 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::Renderer::Renderer | ( | Internal::Renderer * | 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 Renderer
Member Function Documentation
static Renderer Dali::Renderer::DownCast | ( | BaseHandle | handle | ) | [static] |
Downcasts to a renderer handle. If not, a renderer the returned renderer handle is left uninitialized.
- Since:
- 3.0, DALi version 1.1.43
- Parameters:
-
[in] handle Handle to an object
- Returns:
- Renderer handle or an uninitialized handle
Reimplemented from Dali::Handle.
Geometry Dali::Renderer::GetGeometry | ( | ) | const |
Gets the geometry used by this renderer.
- Since:
- 3.0, DALi version 1.1.43
- Returns:
- The geometry used by the renderer
Shader Dali::Renderer::GetShader | ( | ) | const |
Gets the shader used by this renderer.
- Since:
- 3.0, DALi version 1.1.43
- Returns:
- The shader used by the renderer
TextureSet Dali::Renderer::GetTextures | ( | ) | const |
Gets the texture set used by this renderer.
- Since:
- 3.0, DALi version 1.1.43
- Returns:
- The texture set used by the renderer
static Renderer Dali::Renderer::New | ( | Geometry & | geometry, |
Shader & | shader | ||
) | [static] |
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:
- Reference to the assigned object
void Dali::Renderer::SetGeometry | ( | Geometry & | geometry | ) |
Sets the geometry to be used by this renderer.
- Since:
- 3.0, DALi version 1.1.43
- Parameters:
-
[in] geometry The geometry to be used by this renderer
void Dali::Renderer::SetIndexRange | ( | int | firstElement, |
int | elementsCount | ||
) |
Sets effective range of indices to draw from bound index buffer.
- Since:
- 3.0, DALi version 1.1.43
- Parameters:
-
[in] firstElement The First element to draw [in] elementsCount The number of elements to draw
void Dali::Renderer::SetShader | ( | Shader & | shader | ) |
Sets the shader used by this renderer.
- Since:
- 3.0, DALi version 1.1.43
- Parameters:
-
[in] shader The shader to be used by this renderer
void Dali::Renderer::SetTextures | ( | TextureSet & | textureSet | ) |
Sets the texture set to be used by this renderer.
- Since:
- 3.0, DALi version 1.1.43
- Parameters:
-
[in] textureSet The texture set to be used by this renderer