Change-Id: If2f1d15c7f7cdf56d555481b63f5dc0f0addce7b
Signed-off-by: Francisco Santos <f1.santos@samsung.com>
application.SendNotification();
application.Render();
application.SendNotification();
application.Render();
- Vector2 leftCorner( Stage::GetCurrent().GetSize() * 0.5f );
- leftCorner.x = -leftCorner.x;
+ Vector2 topLeft( Stage::GetCurrent().GetSize() * 0.5f );
+ topLeft.y = -topLeft.y;
- // Gets converted to opengl viewport coordinates
+ // Gets converted to opengl view space
DALI_TEST_CHECK(
application.GetGlAbstraction().CheckUniformValue(
effect.GetCenterPropertyName().c_str(),
DALI_TEST_CHECK(
application.GetGlAbstraction().CheckUniformValue(
effect.GetCenterPropertyName().c_str(),
DALI_TEST_CHECK(
application.GetGlAbstraction().CheckUniformValue(
DALI_TEST_CHECK(
application.GetGlAbstraction().CheckUniformValue(
application.SendNotification();
application.Render();
application.SendNotification();
application.Render();
+ Vector2 bottomRight( Stage::GetCurrent().GetSize() * 0.5f );
+ bottomRight.x = -bottomRight.x;
+
// Gets converted to opengl viewport coordinates
DALI_TEST_CHECK(
application.GetGlAbstraction().CheckUniformValue(
effect.GetCenterPropertyName().c_str(),
// Gets converted to opengl viewport coordinates
DALI_TEST_CHECK(
application.GetGlAbstraction().CheckUniformValue(
effect.GetCenterPropertyName().c_str(),
- Vector2(240.0f, -400.0f) ) );
DALI_TEST_CHECK(
application.GetGlAbstraction().CheckUniformValue(
effect.GetDirectionPropertyName().c_str(),
DALI_TEST_CHECK(
application.GetGlAbstraction().CheckUniformValue(
effect.GetDirectionPropertyName().c_str(),
Vector2 ToScreenPosition(Vector2 value)
{
Vector2 stageSize = Dali::Stage::GetCurrent().GetSize();
Vector2 ToScreenPosition(Vector2 value)
{
Vector2 stageSize = Dali::Stage::GetCurrent().GetSize();
- value.x = value.x - stageSize.x * 0.5f;
+ value.x = stageSize.x * 0.5f - value.x;
value.y = value.y - stageSize.y * 0.5f;
value.y = value.y - stageSize.y * 0.5f;
application.SendNotification();
application.Render();
application.SendNotification();
application.Render();
- Vector2 leftCorner( Stage::GetCurrent().GetSize() * 0.5f );
- leftCorner.x = -leftCorner.x;
+ Vector2 topLeft( Stage::GetCurrent().GetSize() * 0.5f );
+ topLeft.y = -topLeft.y;
for ( unsigned int i = 0; i < effect.GetNumberOfWaves(); ++i )
{
for ( unsigned int i = 0; i < effect.GetNumberOfWaves(); ++i )
{
DALI_TEST_CHECK(
application.GetGlAbstraction().CheckUniformValue(
effect.GetCenterPropertyName(i).c_str(),
DALI_TEST_CHECK(
application.GetGlAbstraction().CheckUniformValue(
effect.GetCenterPropertyName(i).c_str(),
DALI_TEST_CHECK(
application.GetGlAbstraction().CheckUniformValue(
effect.GetPropagationPropertyName(i).c_str(),
DALI_TEST_CHECK(
application.GetGlAbstraction().CheckUniformValue(
effect.GetPropagationPropertyName(i).c_str(),
effect.GetAmplitudePropertyName(0).c_str(),
0.5f ) );
effect.GetAmplitudePropertyName(0).c_str(),
0.5f ) );
- Vector2 leftCorner( Stage::GetCurrent().GetSize() * 0.5f );
- leftCorner.x = -leftCorner.x;
+ Vector2 centerPoint( Stage::GetCurrent().GetSize() * 0.5f );
+ centerPoint.y = -centerPoint.y;
DALI_TEST_CHECK(
application.GetGlAbstraction().CheckUniformValue(
effect.GetCenterPropertyName(0).c_str(),
DALI_TEST_CHECK(
application.GetGlAbstraction().CheckUniformValue(
effect.GetCenterPropertyName(0).c_str(),
- Vector2( leftCorner.x + 10.0f, leftCorner.y - 10.0f ) ) );
+ Vector2( centerPoint.x - 10.0f, centerPoint.y + 10.0f ) ) );
DALI_TEST_CHECK(
application.GetGlAbstraction().CheckUniformValue(
effect.GetPropagationPropertyName(0).c_str(),
DALI_TEST_CHECK(
application.GetGlAbstraction().CheckUniformValue(
effect.GetPropagationPropertyName(0).c_str(),