Dali 3D User Interface Engine
Functions | Variables
Dali::Toolkit::Internal::anonymous_namespace{cube-transition-effect-impl.cpp} Namespace Reference

Functions

 DALI_TYPE_REGISTRATION_BEGIN (Toolkit::CubeTransitionEffect, Dali::BaseHandle, NULL)
 
Actor CreateTile (const Vector4 &samplerRect)
 
Geometry CreateQuadGeometry ()
 

Variables

const char * VERTEX_SHADER
 
const char * FRAGMENT_SHADER
 

Function Documentation

Geometry Dali::Toolkit::Internal::anonymous_namespace{cube-transition-effect-impl.cpp}::CreateQuadGeometry ( void  )
Actor Dali::Toolkit::Internal::anonymous_namespace{cube-transition-effect-impl.cpp}::CreateTile ( const Vector4 &  samplerRect)

Definition at line 79 of file cube-transition-effect-impl.cpp.

References Dali::AnchorPoint::CENTER, Dali::Actor::New(), Dali::Handle::RegisterProperty(), and Dali::Actor::SetAnchorPoint().

Referenced by Dali::Toolkit::Internal::CubeTransitionEffect::Initialize().

Here is the call graph for this function:

Here is the caller graph for this function:

Dali::Toolkit::Internal::anonymous_namespace{cube-transition-effect-impl.cpp}::DALI_TYPE_REGISTRATION_BEGIN ( Toolkit::CubeTransitionEffect  ,
Dali::BaseHandle  ,
NULL   
)

Variable Documentation

const char* Dali::Toolkit::Internal::anonymous_namespace{cube-transition-effect-impl.cpp}::FRAGMENT_SHADER
Initial value:
varying mediump vec2 vTexCoord;\n
uniform sampler2D sTexture;\n
uniform lowp vec4 uColor;\n
uniform lowp vec4 uSamplerRect;
\n
void main()\n
{\n
gl_FragColor = texture2D( sTexture, vTexCoord ) * uColor;\n
}\n
)

Definition at line 67 of file cube-transition-effect-impl.cpp.

const char* Dali::Toolkit::Internal::anonymous_namespace{cube-transition-effect-impl.cpp}::VERTEX_SHADER
Initial value:
attribute mediump vec2 aPosition;\n
varying mediump vec2 vTexCoord;\n
uniform mediump mat4 uMvpMatrix;\n
uniform mediump vec3 uSize;\n
uniform mediump vec4 uTextureRect;\n
\n
void main()\n
{\n
mediump vec4 vertexPosition = vec4(aPosition, 0.0, 1.0);\n
vertexPosition.xyz *= uSize;\n
vertexPosition = uMvpMatrix * vertexPosition;\n
\n
vTexCoord = aPosition + vec2(0.5);\n
vTexCoord = mix(uTextureRect.xy, uTextureRect.zw, vTexCoord);\n
gl_Position = vertexPosition;\n
}\n
)

Definition at line 47 of file cube-transition-effect-impl.cpp.

Dali Docs Home
Read more about Dali