Dali 3D User Interface Engine
Functions | Variables
Dali::Toolkit::Internal::anonymous_namespace{border-renderer.cpp} Namespace Reference

Functions

const char *const RENDERER_TYPE ("rendererType")
 
const char *const RENDERER_TYPE_VALUE ("border")
 
const char *const COLOR_NAME ("borderColor")
 
const char *const SIZE_NAME ("borderSize")
 
const char *const ANTI_ALIASING ("antiAliasing")
 
const char *const POSITION_ATTRIBUTE_NAME ("aPosition")
 
const char *const DRIFT_ATTRIBUTE_NAME ("aDrift")
 
const char *const INDEX_NAME ("indices")
 

Variables

const char * VERTEX_SHADER
 
const char * FRAGMENT_SHADER
 
const char * VERTEX_SHADER_ANTI_ALIASING
 
const char * FRAGMENT_SHADER_ANTI_ALIASING
 

Function Documentation

const char* const Dali::Toolkit::Internal::anonymous_namespace{border-renderer.cpp}::ANTI_ALIASING ( "antiAliasing"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{border-renderer.cpp}::COLOR_NAME ( "borderColor"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{border-renderer.cpp}::DRIFT_ATTRIBUTE_NAME ( "aDrift"  )

Referenced by Dali::Toolkit::Internal::BorderRenderer::CreateBorderGeometry().

Here is the caller graph for this function:

const char* const Dali::Toolkit::Internal::anonymous_namespace{border-renderer.cpp}::INDEX_NAME ( "indices"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{border-renderer.cpp}::POSITION_ATTRIBUTE_NAME ( "aPosition"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{border-renderer.cpp}::RENDERER_TYPE ( "rendererType"  )

Referenced by Dali::Toolkit::Internal::ImageRenderer::DoCreatePropertyMap().

Here is the caller graph for this function:

const char* const Dali::Toolkit::Internal::anonymous_namespace{border-renderer.cpp}::RENDERER_TYPE_VALUE ( "border"  )

Referenced by Dali::Toolkit::Internal::ImageRenderer::DoCreatePropertyMap().

Here is the caller graph for this function:

const char* const Dali::Toolkit::Internal::anonymous_namespace{border-renderer.cpp}::SIZE_NAME ( "borderSize"  )

Variable Documentation

const char* Dali::Toolkit::Internal::anonymous_namespace{border-renderer.cpp}::FRAGMENT_SHADER
Initial value:
uniform lowp vec4 uColor;\n
uniform lowp vec4 borderColor;\n
\n
void main()\n
{\n
gl_FragColor = borderColor*uColor;\n
}\n
)

Definition at line 66 of file border-renderer.cpp.

const char* Dali::Toolkit::Internal::anonymous_namespace{border-renderer.cpp}::FRAGMENT_SHADER_ANTI_ALIASING
Initial value:
uniform lowp vec4 uColor;\n
uniform lowp vec4 borderColor;\n
uniform mediump float borderSize;\n
varying mediump float vAlpha;\n
\n
void main()\n
{\n
gl_FragColor = borderColor*uColor;\n
gl_FragColor.a *= smoothstep(0.0, 1.5, vAlpha)*smoothstep( borderSize+1.5, borderSize, vAlpha );\n
}\n
)

Definition at line 92 of file border-renderer.cpp.

const char* Dali::Toolkit::Internal::anonymous_namespace{border-renderer.cpp}::VERTEX_SHADER
Initial value:
attribute mediump vec2 aPosition;\n
attribute mediump vec2 aDrift;\n
uniform mediump mat4 uMvpMatrix;\n
uniform mediump vec3 uSize;\n
uniform mediump float borderSize;\n
\n
void main()\n
{\n
vec2 position = aPosition*uSize.xy + aDrift*borderSize;\n
gl_Position = uMvpMatrix * vec4(position, 0.0, 1.0);\n
}\n
)

Definition at line 52 of file border-renderer.cpp.

const char* Dali::Toolkit::Internal::anonymous_namespace{border-renderer.cpp}::VERTEX_SHADER_ANTI_ALIASING
Initial value:
attribute mediump vec2 aPosition;\n
attribute mediump vec2 aDrift;\n
uniform mediump mat4 uMvpMatrix;\n
uniform mediump vec3 uSize;\n
uniform mediump float borderSize;\n
varying mediump float vAlpha;\n
\n
void main()\n
{\n
vec2 position = aPosition*(uSize.xy+vec2(0.75)) + aDrift*(borderSize+1.5);\n
gl_Position = uMvpMatrix * vec4(position, 0.0, 1.0);\n
vAlpha = min( abs(aDrift.x), abs(aDrift.y) )*(borderSize+1.5);
}\n
)

Definition at line 76 of file border-renderer.cpp.

Dali Docs Home
Read more about Dali