Tizen Native API  6.5

Shaders allows custom vertex and color transformations in the GPU. More...

Inheritance diagram for Dali::Shader:
Dali::Handle Dali::BaseHandle

Classes

struct  Hint
 Hints for rendering. More...
struct  Property
 Enumeration for instances of properties belonging to the Shader class. More...

Public Member Functions

 Shader ()
 Default constructor, creates an empty handle.
 ~Shader ()
 Destructor. This is non-virtual since derived Handle types must not contain data or virtual methods.
 Shader (const Shader &handle)
 Copy constructor.
Shaderoperator= (const Shader &handle)
 Assignment operator, changes this handle to point at the same object.
 Shader (Internal::Shader *effect)
 This constructor is used by Dali New() methods.

Static Public Member Functions

static Shader New (const std::string &vertexShader, const std::string &fragmentShader, Hint::Value hints=Hint::NONE)
 Creates Shader.
static Shader DownCast (BaseHandle handle)
 Downcasts to a shader handle. If not, a shader the returned shader handle is left uninitialized.

Detailed Description

Shaders allows custom vertex and color transformations in the GPU.

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. This is non-virtual since derived Handle types must not contain data or virtual methods.

Since:
3.0, DALi version 1.1.43
Dali::Shader::Shader ( const Shader handle)

Copy constructor.

Since:
3.0, DALi version 1.1.43
Parameters:
[in]handleA handle to a Shader object
Dali::Shader::Shader ( Internal::Shader *  effect) [explicit]

This constructor is used by Dali New() methods.

Note:
Not intended for application developers.
Since:
3.0, DALi version 1.1.43
Parameters:
[in]effectA pointer to a newly allocated Dali resource.

Member Function Documentation

static Shader Dali::Shader::DownCast ( BaseHandle  handle) [static]

Downcasts to a shader handle. If not, a shader the returned shader handle is left uninitialized.

Since:
3.0, DALi version 1.1.43
Parameters:
[in]handleHandle to an object
Returns:
Shader handle or an uninitialized handle

Reimplemented from Dali::Handle.

static Shader Dali::Shader::New ( const std::string &  vertexShader,
const std::string &  fragmentShader,
Hint::Value  hints = Hint::NONE 
) [static]

Creates Shader.

Since:
3.0, DALi version 1.1.43
Parameters:
[in]vertexShaderVertex shader code for the effect.
[in]fragmentShaderFragment Shader code for the effect.
[in]hintsHints to define the geometry of the rendered object
Returns:
A handle to a shader effect
Shader& Dali::Shader::operator= ( const Shader 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