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

Functions

const char *const RENDERER_TYPE ("rendererType")
 
const char *const RENDERER_TYPE_VALUE ("image")
 
const char *const IMAGE_URL_NAME ("imageUrl")
 
const char *const IMAGE_FITTING_MODE ("imageFittingMode")
 
const char *const IMAGE_SAMPLING_MODE ("imageSamplingMode")
 
const char *const IMAGE_DESIRED_WIDTH ("imageDesiredWidth")
 
const char *const IMAGE_DESIRED_HEIGHT ("imageDesiredHeight")
 
const char *const SHRINK_TO_FIT ("shrinkToFit")
 
const char *const SCALE_TO_FILL ("scaleToFill")
 
const char *const FIT_WIDTH ("fitWidth")
 
const char *const FIT_HEIGHT ("fitHeight")
 
const char *const DEFAULT ("default")
 
const char *const BOX ("box")
 
const char *const NEAREST ("nearest")
 
const char *const LINEAR ("linear")
 
const char *const BOX_THEN_NEAREST ("boxThenNearest")
 
const char *const BOX_THEN_LINEAR ("boxThenLinear")
 
const char *const NO_FILTER ("noFilter")
 
const char *const DONT_CARE ("dontCare")
 
const Vector4 FULL_TEXTURE_RECT (0.f, 0.f, 1.f, 1.f)
 
Geometry GenerateGeometry (const Vector< Vector2 > &vertices, const Vector< unsigned int > &indices)
 
Geometry CreateGeometry (RendererFactoryCache &factoryCache, ImageDimensions gridSize)
 

Variables

const char HTTP_URL [] = "http://"
 
const char HTTPS_URL [] = "https://"
 
const std::string TEXTURE_UNIFORM_NAME = "sTexture"
 
const std::string ATLAS_RECT_UNIFORM_NAME = "uAtlasRect"
 
const std::string PIXEL_AREA_UNIFORM_NAME = "pixelArea"
 
const char * DEFAULT_SAMPLER_TYPENAME = "sampler2D"
 
const char * VERTEX_SHADER
 
const char * FRAGMENT_SHADER
 

Function Documentation

const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::BOX ( "box"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::BOX_THEN_LINEAR ( "boxThenLinear"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::BOX_THEN_NEAREST ( "boxThenNearest"  )
Geometry Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::CreateGeometry ( RendererFactoryCache &  factoryCache,
ImageDimensions  gridSize 
)
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::DEFAULT ( "default"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::DONT_CARE ( "dontCare"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::FIT_HEIGHT ( "fitHeight"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::FIT_WIDTH ( "fitWidth"  )
const Vector4 Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::FULL_TEXTURE_RECT ( 0.  f,
0.  f,
1.  f,
1.  f 
)
Geometry Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::GenerateGeometry ( const Vector< Vector2 > &  vertices,
const Vector< unsigned int > &  indices 
)
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::IMAGE_DESIRED_HEIGHT ( "imageDesiredHeight"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::IMAGE_DESIRED_WIDTH ( "imageDesiredWidth"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::IMAGE_FITTING_MODE ( "imageFittingMode"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::IMAGE_SAMPLING_MODE ( "imageSamplingMode"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::IMAGE_URL_NAME ( "imageUrl"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::LINEAR ( "linear"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::NEAREST ( "nearest"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::NO_FILTER ( "noFilter"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::RENDERER_TYPE ( "rendererType"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::RENDERER_TYPE_VALUE ( "image"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::SCALE_TO_FILL ( "scaleToFill"  )
const char* const Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::SHRINK_TO_FIT ( "shrinkToFit"  )

Variable Documentation

const std::string Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::ATLAS_RECT_UNIFORM_NAME = "uAtlasRect"

Definition at line 75 of file image-renderer.cpp.

const char* Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::DEFAULT_SAMPLER_TYPENAME = "sampler2D"

Definition at line 80 of file image-renderer.cpp.

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

Definition at line 101 of file image-renderer.cpp.

const char Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::HTTP_URL[] = "http://"

Definition at line 45 of file image-renderer.cpp.

const char Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::HTTPS_URL[] = "https://"

Definition at line 46 of file image-renderer.cpp.

const std::string Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::PIXEL_AREA_UNIFORM_NAME = "pixelArea"

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

const std::string Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::TEXTURE_UNIFORM_NAME = "sTexture"
const char* Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::VERTEX_SHADER
Initial value:
attribute mediump vec2 aPosition;\n
uniform mediump mat4 uMvpMatrix;\n
uniform mediump vec3 uSize;\n
uniform mediump vec4 uAtlasRect;\n
uniform mediump vec4 pixelArea;
varying mediump vec2 vTexCoord;\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 = mix( uAtlasRect.xy, uAtlasRect.zw, pixelArea.xy+pixelArea.zw*(aPosition + vec2(0.5) ) );\n
gl_Position = vertexPosition;\n
}\n
)

Definition at line 82 of file image-renderer.cpp.

Dali Docs Home
Read more about Dali