Tizen Native API  4.0
Dali::Renderer Class Reference

Renderer is a handle to an object used to show content by combining a Geometry, a TextureSet and a shader. More...

Inheritance diagram for Dali::Renderer:
Dali::Handle Dali::BaseHandle

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.
Rendereroperator= (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]handleHandle 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]pointerA 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]handleHandle to an object
Returns:
Renderer handle or an uninitialized handle

Reimplemented from Dali::Handle.

Gets the geometry used by this renderer.

Since:
3.0, DALi version 1.1.43
Returns:
The geometry used by the renderer

Gets the shader used by this renderer.

Since:
3.0, DALi version 1.1.43
Returns:
The shader used by the renderer

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]

Creates a new Renderer object.

Since:
3.0, DALi version 1.1.43
Parameters:
[in]geometryGeometry to be used by this renderer
[in]shaderShader to be used by this renderer
Returns:
A handle to the Renderer
Renderer& Dali::Renderer::operator= ( const Renderer handle)

Assignment operator, changes this handle to point at the same object.

Since:
3.0, DALi version 1.1.43
Parameters:
[in]handleHandle 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]geometryThe 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]firstElementThe First element to draw
[in]elementsCountThe 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]shaderThe 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]textureSetThe texture set to be used by this renderer