SET(DALI_LOCALE_DIR \\"${LOCALE_DIR}\\")
SET(DALI_LANG \\"${LANG}\\")
-FILE(GLOB LOCAL_IMAGES_PNG RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.png")
-FILE(GLOB LOCAL_IMAGES_JPG RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.jpg")
-FILE(GLOB LOCAL_IMAGES_GIF RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.gif")
-FILE(GLOB LOCAL_IMAGES_BMP RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.bmp")
-FILE(GLOB LOCAL_IMAGES_ICO RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.ico")
+FILE(GLOB LOCAL_IMAGES_PNG RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.png")
+FILE(GLOB LOCAL_IMAGES_JPG RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.jpg")
+FILE(GLOB LOCAL_IMAGES_GIF RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.gif")
+FILE(GLOB LOCAL_IMAGES_BMP RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.bmp")
+FILE(GLOB LOCAL_IMAGES_ICO RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.ico")
FILE(GLOB LOCAL_IMAGES_WBMP RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.wbmp")
-FILE(GLOB LOCAL_IMAGES_KTX RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.ktx")
+FILE(GLOB LOCAL_IMAGES_KTX RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.ktx")
+FILE(GLOB LOCAL_IMAGES_ASTC RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/*.astc")
-SET(LOCAL_IMAGES_LIST ${LOCAL_IMAGES_PNG};${LOCAL_IMAGES_JPG};${LOCAL_IMAGES_GIF};${LOCAL_IMAGES_BMP};${LOCAL_IMAGES_ICO};${LOCAL_IMAGES_WBMP};${LOCAL_IMAGES_KTX})
+SET(LOCAL_IMAGES_LIST ${LOCAL_IMAGES_PNG};${LOCAL_IMAGES_JPG};${LOCAL_IMAGES_GIF};${LOCAL_IMAGES_BMP};${LOCAL_IMAGES_ICO};${LOCAL_IMAGES_WBMP};${LOCAL_IMAGES_KTX};${LOCAL_IMAGES_ASTC})
FOREACH(flag ${LOCAL_IMAGES_LIST})
INSTALL(FILES ${LOCAL_IMAGES_DIR}/${flag} DESTINATION ${IMAGES_DIR})
ENDFOREACH(flag)
using namespace Dali;
using Dali::Toolkit::TextLabel;
-const char* IMAGE_FILENAME_ETC = DALI_IMAGE_DIR "tx-etc1.ktx";
-const char* IMAGE_FILENAME_ASTC_LINEAR = DALI_IMAGE_DIR "tx-astc-4x4-linear.ktx";
-const char* IMAGE_FILENAME_ASTC_SRGB = DALI_IMAGE_DIR "tx-astc-4x4-srgb.ktx";
+const char* IMAGE_FILENAME_ETC = DALI_IMAGE_DIR "tx-etc1.ktx";
+const char* IMAGE_FILENAME_ASTC_LINEAR = DALI_IMAGE_DIR "tx-astc-4x4-linear.ktx";
+const char* IMAGE_FILENAME_ASTC_LINEAR_NATIVE = DALI_IMAGE_DIR "tx-astc-4x4-linear-native.astc";
/**
* @brief This example shows 3 images, each of a different compressed texture type.
table.SetAnchorPoint( AnchorPoint::CENTER );
table.SetParentOrigin( ParentOrigin::CENTER );
table.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
- table.SetFitHeight( 0u );
- table.SetFitHeight( 1u );
- table.SetFitHeight( 2u );
table.SetRelativeWidth( 0u, 0.5f );
table.SetRelativeWidth( 1u, 0.5f );
+ table.SetRelativeHeight( 0u, 1.0f / 3.0f );
+ table.SetRelativeHeight( 1u, 1.0f / 3.0f );
+ table.SetRelativeHeight( 2u, 1.0f / 3.0f );
+
// Add text labels.
- TextLabel textLabel = TextLabel::New( "ETC1:" );
+ TextLabel textLabel = TextLabel::New( "ETC1 (KTX):" );
textLabel.SetAnchorPoint( AnchorPoint::CENTER );
textLabel.SetParentOrigin( ParentOrigin::CENTER );
+ textLabel.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
+ textLabel.SetProperty( Toolkit::TextLabel::Property::MULTI_LINE, true );
table.AddChild( textLabel, Toolkit::TableView::CellPosition( 0u, 0u ) );
table.SetCellAlignment( Toolkit::TableView::CellPosition( 0u, 0u ), HorizontalAlignment::LEFT, VerticalAlignment::CENTER );
- textLabel = TextLabel::New( "ASTC 4x4 linear:" );
+ textLabel = TextLabel::New( "ASTC (KTX) 4x4 linear:" );
textLabel.SetAnchorPoint( AnchorPoint::CENTER );
textLabel.SetParentOrigin( ParentOrigin::CENTER );
+ textLabel.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
+ textLabel.SetProperty( Toolkit::TextLabel::Property::MULTI_LINE, true );
table.AddChild( textLabel, Toolkit::TableView::CellPosition( 1u, 0u ) );
table.SetCellAlignment( Toolkit::TableView::CellPosition( 1u, 0u ), HorizontalAlignment::LEFT, VerticalAlignment::CENTER );
- textLabel = TextLabel::New( "ASTC 4x4 sRGB:" );
+ textLabel = TextLabel::New( "ASTC (Native) 4x4 linear:" );
textLabel.SetAnchorPoint( AnchorPoint::CENTER );
textLabel.SetParentOrigin( ParentOrigin::CENTER );
+ textLabel.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
+ textLabel.SetProperty( Toolkit::TextLabel::Property::MULTI_LINE, true );
table.AddChild( textLabel, Toolkit::TableView::CellPosition( 2u, 0u ) );
table.SetCellAlignment( Toolkit::TableView::CellPosition( 2u, 0u ), HorizontalAlignment::LEFT, VerticalAlignment::CENTER );
imageView.SetParentOrigin( ParentOrigin::CENTER );
table.AddChild( imageView, Toolkit::TableView::CellPosition( 1u, 1u ) );
- imageView = Toolkit::ImageView::New( ResourceImage::New( IMAGE_FILENAME_ASTC_SRGB ) );
+ imageView = Toolkit::ImageView::New( ResourceImage::New( IMAGE_FILENAME_ASTC_LINEAR_NATIVE ) );
imageView.SetAnchorPoint( AnchorPoint::CENTER );
imageView.SetParentOrigin( ParentOrigin::CENTER );
table.AddChild( imageView, Toolkit::TableView::CellPosition( 2u, 1u ) );